Re: Problem with reading file and executing other stuffs?

2007-11-08 Thread Hugh Sasse
On Thu, 8 Nov 2007, Horinius wrote: Hugh Sasse wrote: Again, what problem are you trying to solve, if any? I'm doing some processing in a big file which is well formatted. It's sort of a database table (or a CVS file if you like). Every line contains a OK, if it is in fields, like

Re: Problem with reading file and executing other stuffs?

2007-11-02 Thread Paul Jarc
Horinius [EMAIL PROTECTED] wrote: Paul Jarc wrote: Read entry E4 in the bash FAQ: http://tiswww.case.edu/php/chet/bash/FAQ I've read several times that section but I'm not sure how to use the IFS. IFS is only useful if you're splitting the fields of the line into separate variables. The

Re: Problem with reading file and executing other stuffs?

2007-11-02 Thread Paul Jarc
Horinius [EMAIL PROTECTED] wrote: Is there any pitfall using this solution of yours? You talked about regular file, what's that supposed to be? Text file vs binary file? No, just that it doesn't work for pipes, so the data you're reading has to be in a named file, not produced as the output

Re: Problem with reading file and executing other stuffs?

2007-11-02 Thread Hugh Sasse
On Fri, 2 Nov 2007, Horinius wrote: It's a pity that the filename can't be put before the while loop or it'll be a lot easier to read, esp when the while loop is very big. (Once more, no need to answer to this comment of mine :p ) The while loop should never be very big. Functions and

Re: Problem with reading file and executing other stuffs?

2007-11-02 Thread Horinius
://www.nabble.com/Problem-with-reading-file-and-executing-other-stuffs--tf4733602.html#a13553839 Sent from the Gnu - Bash mailing list archive at Nabble.com.

Re: Problem with reading file and executing other stuffs?

2007-11-01 Thread Paul Jarc
Horinius [EMAIL PROTECTED] wrote: cat test.txt | while read line Read entry E4 in the bash FAQ: http://tiswww.case.edu/php/chet/bash/FAQ paul