Perche' crea un file???
Secondo voi, perche' questo script crea un file vuoto chiamato <0> nella
dir. corrente???
#!/bin/bash
mypath="/home/gandu/Mail/zsearch"
# conto i risultati
count=""
for i in `ls -1 $mypath`; do
count="`echo $(($count+1))`"
done
echo ""
echo "############ r e s u l t ############"
echo ""
echo "Ho cercato $1 e ho trovato $count risultati"
if [ $count > 0 ]; then
echo ""
echo "Ho salvato i risultati in $mypath"
fi
echo ""
echo "-- ho finito."
echo "-- cercamail ver 0.8"
# visualizza il fottuto file <0>
ls -l 0
--
, ,
/ \
((__-^^-,-^^-__)) http://www.frequenze.it
`-_---' `---_-'
`--|o` 'o|--' Debian Sarge kernel 2.4.22
\ ` / Notebook Asus A2520 CPU 2.4Ghz RAM 512MB
): :(
:o_o:
"-"
Reply to: