[ILUG] Spaces in arguments in a bash for loop

Stephen Shirley diamond at csn.ul.ie
Fri Nov 3 11:46:15 GMT 2000


> 
> IFS='\n'
> 
> I always got around this with
> 
> IFS='
> '
> 
> But that's crap, anyone know another way?
> 
> Mark
> 
Yup. Do the following:
IFS='^V^M'

where ^V means pressing ctrl+v
and ^M means just hitting return.

Steve






More information about the ILUG mailing list