bash leptomereies (was Re: pigouinakia)
Antonis Kanavouras
ankan at med.auth.gr
Tue May 16 18:43:14 EEST 2000
Giorgos Keramidas wrote:
>
> ? Erwthsis :
> ?
> ? poia h diafora metaxy cat "$@" kai cat "$*" ?
>
> dokimase to akoloutho script:
>
> % cat script.sh
> #!/bin/sh
> for arg in "$@" ;do
> echo "$arg"
> done
>
> kai perna tou diafora arguments, kapoia apo auta KAI me spaces,
> opws p.x. sto:
>
> % script.sh 'blah' "blah me kena"
>
> kai meta treksto kai me "$*" na deis ti diafora :-)
>
Thanks Giwrgo. Gia na epivevaiwsw ayto pou psyliasthka tropopoihsa ligo
to script. To stelnw gia osous eixan thn idia aporia me mena. Etsi einai
pio apokalyptiko.
#!/bin/sh
i=0
for arg in "$@" ;do
echo "$arg"
i=`expr $i + 1`
done
echo $i
--
linux-greek-users mailing list -- http://lists.hellug.gr
More information about the Linux-greek-users
mailing list