help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] IFS & read


From: Stephane Chazelas
Subject: Re: [Help-bash] IFS & read
Date: Sat, 26 May 2012 20:08:40 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

2012-05-26 12:56:31 -0600, Bill Gradwohl:
> I have a file that uses the tab character as the separator.
> 
> Writing a read loop against that file works just fine and I get field
> separation.
> 
> I converted that file by replacing the tab character with \b and changed
> the IFS to match and now I don't get field separation.
> 
> I also tried \x00 and \x01 and they don't work either.
> 
> What are the allowable IFS characters as far as read is concerned?
[...]

\b is 0x8. 

IFS=$'\b' or IFS=$'\010'

-- 
Stephane




reply via email to

[Prev in Thread] Current Thread [Next in Thread]