[Gllug] Re: Bash scripting question
Craig Millar
gllug at craigmillar.org
Thu Aug 10 19:36:35 UTC 2006
On 10/08/06 20:23 +0100, Tom Schutzer-Weissmann wrote:
> tom at t40:~$ export IFS='
> > '
> tom at t40:~$ #there was no space after the first ', only a linebreak
Alternately you could use: IFS=$'\n'
Also, don't forget to include: unset IFS
at the end of the loop so that other commands aren't confused.
hth
craig
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list