[Linux-Biella] Script
CIARROCCHI, Paolo, VF-IT
linux@ml.bilug.linux.it
Tue, 20 Jan 2004 17:34:06 +0100
Ciao a tutti...
chi mi aiuta a completare questo script ?
#!/usr/bin/bash
lista=$(ls SDST*.TXT)
for i in $lista;
do
born=$(./erasefirstline.sh $i|cut -d ";" -f 2)
killed=$(./erasefirstline.sh $i|cut -d ";" -f 3)
dead=$(./erasefirstline.sh $i|cut -d ";" -f 4)
date=$(echo $i|cut -d "_" -f 2|cut -d "." -f 1)
SE i e' uguale a 1 allora
/usr/bin/echo "Data \t\tBorn \tKilled \tDead"
ALTRIMENTI
/usr/bin/echo "$date \t$born \t$killed \t$dead"
echo
done;
Come si costruisce il costrutto if in questo caso ?
Paolo