On Thu, Jan 22, 2004 at 11:46:12PM +0200, lonely wolf wrote:
> Costi wrote:
> 
> >>cat that_file | while read one_line
> yuck.
> exista "<" pt redirectarea input, nu e nevoie de cat (
>       script < that_file
> )

ce sa-tz spun. ai citit prea mult si totusi prea putin despre usseles use of
cat award. 

sigur ca exista, dar este mult mai greu de citit codul si pare nenatural. ia
incearca sa scrii un astfel de
                 while read stuff
                 do
                   ...
                   30 de linii de ecran
                   ...
                 done < file
si vezi daca ti se mai pare inteligibil codul dupa 6 luni.


> 
> -- 
> "Normal people ... believe that if it ain't broke, don't fix it.
> Engineers believe that if it ain't broke, it doesn't have
> enough features yet."
> --- Scott Adams, The Dilbert Principle
> 
> 
> --- 
> Detalii despre listele noastre de mail: http://www.lug.ro/
> 

-- 
        ___
       <o-o>    Viorel ANGHEL <vang @ lug.ro>
       [`-']    
       -"-"-    In Linux We Trust.


--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui