&&
a ||
hjkl
.
url="http://kam.mff.cuni.cz/~stinovlas/materialy/unix/arachnid.tar.gz"
curl "$url" | tar xz
cd arachnid
make
./arachnid
#!/bin/sh
head -n$1 hlasky.txt
tail -n+$1 | tail -n+2 > .tmp
mv .tmp hlasky.txt
#!/bin/sh
sort -u $1 > /tmp/tempfile
sort -u $2 >> /tmp/tempfile
sort /tmp/tempfile | uniq -d
rm /tmp/tempfile
#!/bin/sh
echo $(( $1 + $2 ))
#!/bin/sh
echo $(( $1 < $2 ? $1 : $2 ))
#!/bin/sh
ls "$1" && echo "Soubor $1 již existuje." 1>&2
ls "$1" || touch "$1"
#!/bin/sh
if [ -e "$1" ]; then
echo "Soubor $1 již existuje." 1>&2
else
touch "$1"
fi
99 bottles of beer
, 98 bottles of beer
až 0 bottles of beer
.
#!/bin/sh
for i in $( seq 99 -1 0 ); do
echo "$i bottles of beer"
done