Re: Read/Write files from a script?

2006-07-20 Thread Bob McGowan
The $(supports it. But ash (at least the version I have) doesn't, so what to do if you want/need to be portable across all Bourne type shells? There is a feature that will work in all the Bourne shells that I'm familiar with, using I/O redirection and 'exec': exec 5fileName while read inputL

Re: Read/Write files from a script

2006-07-19 Thread Rick Pasotto
On Wed, Jul 19, 2006 at 05:13:26PM +0530, Anil Gupte/k.e.e.n., inc. wrote: > BlankIs there a shell command to read files? I want to open a text > file, loop through each line and parse the line of text. while read line do echo "processing line: $line" done < input_text_file -- "Artificial intel

Re: Read/Write files from a script?

2006-07-19 Thread LeVA
2006. július 19. 16:31, Mladen Adamovic <[EMAIL PROTECTED]> -> Debian User ,: > Tony Terlecki wrote: > >> 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. > > > > Depending on what you want to do: > > > > man sed > > man aw

Re: Read/Write files from a script?

2006-07-19 Thread Tony Terlecki
On Wed, Jul 19, 2006 at 05:19:30PM +0530, Anil Gupte wrote: > bg image(cid:014e01c6ab29$652db160$6400a8c0@Aum) > 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. > Depending on what you want to do: man sed man awk Regardl

Re: Read/Write files from a script?

2006-07-19 Thread Mladen Adamovic
Tony Terlecki wrote: 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. Depending on what you want to do: man sed man awk Yeah, but he asked about shell commands which read files, and that is 'cat' so my addon to

Read/Write files from a script

2006-07-19 Thread Anil Gupte/k.e.e.n., inc.
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  

RE: Read/Write files from a script?

2006-07-19 Thread Jean-Sebastien Pilon
ect: 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  

RE: Read/Write files from a script?

2006-07-19 Thread Jerry DuVal
/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  

Read/Write files from a script?

2006-07-19 Thread Anil Gupte
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