do

OLDIFS=$IFS
IFS='
'

<do your stuff>

IFS=$OLDIFS



On Fri, Sep 13, 2002 at 05:02:04PM +1000, Howard Lowndes wrote:
> I want to process a text file a line at a time, but I want the entire line
> to be assigned to a variable rather than each non-whitespace character
> string in each line.  Something like:
> 
> for i in $(cat filename); do echo $i; done       Which don't work.:(
> 
> I've tried cat, grep, awk and am getting nowhere (after all it is Friday),
> so [Subject:]
> 
> -- 
> Howard.
> LANNet Computing Associates - Your Linux people
> Contact detail at http://www.lannetlinux.com
> "Flatter government, not fatter government." - me
>  Get rid of the Australian states.
> 
> -- 
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to