[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Read/Write files from a script?



$ cat filename     ß read the file

$ echo ‘bob’ > filename ( [over]write to the file )

Or

$ echo ‘bob’ >> filename    ( appends to the file )

 


From: Anil Gupte [mailto:anil-list@icinema.com]
Sent: Wednesday, July 19, 2006 7:50 AM
To: debian-user@lists.debian.org
Subject: Read/Write files from a script?

 

Is there a shell command to read files?  I want to open a text file, loop through each line and parse the line of text.

 

Also, as I am in learning mode, is there a way to write text files from a script?

 

Thanx,

Anil Gupte

 


Reply to: