User:Ikrustok: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Ikrustok (talk | contribs)
Created page with '== Quest lahendus =='
 
Ikrustok (talk | contribs)
No edit summary
Line 1: Line 1:
== Quest lahendus ==
== Quest lahendus 11 ==
 
<source lang="bash">
#!/bin/bash
#Autor: Ivar Krustok A22, ikrustok@itcollege.ee
ARG=$1
if ! which $ARG > /dev/null; then
        echo "0"
else
        echo "1"
fi
 
</source>

Revision as of 12:09, 11 May 2011

Quest lahendus 11

#!/bin/bash
#Autor: Ivar Krustok A22, ikrustok@itcollege.ee
ARG=$1
if ! which $ARG > /dev/null; then
        echo "0"
else
        echo "1"
fi