Èåìá bash iteration

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Oct 18 02:58:49 EEST 2006


On 2006-10-18 02:54, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
>     $ cat -n files.txt
>          1  foo bar
>          2  foo bar
>          3  foo foo
>     $ while read line ; do \
>           if test -f "${line}" ; then \
>               echo "\`${line}' file exists" ; \
>           else \
>               echo "\`${line}' file not found" ; \
>           fi ; \
>       done < files.txt
>     `foo bar' file not found
>     `foo baz' file not found
>     `foo foo' file not found
>     $
> 
> Ðñüóåîå ðùò áíáôáêåõèýíïíôáò ôçí åßóïäï ÏËÏÕ ôïõ while loop, ôï `read'

         ... 'áíáêáôåõèýíïíôáò', åííïþ öõóéêÜ :)




More information about the Linux-greek-users mailing list