|
From: | Paul Jarc |
Subject: | Re: Problem with reading file and executing other stuffs? |
Date: | Fri, 02 Nov 2007 10:07:11 -0400 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Horinius <lapsap7+nabble@gmail.com> 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 examples in the FAQ are also only useful for reading a single line. If you're reading from a regular file, you can just eliminate the useless use of cat: while read line; do ...; done < test.txt paul
[Prev in Thread] | Current Thread | [Next in Thread] |