View Single Post
Old Jun 27th, 2005, 11:31 AM   #7
TooDice
Newbie
 
Join Date: Jun 2005
Location: UK
Posts: 14
Rep Power: 0 TooDice is on a distinguished road
Quote:
Originally Posted by ballsaq
I might be wrong, but wouldn't you want IFS="\\n" because your looking for \n as the line terminator. And for it to read that it needs the extra \ or am I just losing my mind here?
I know what you're getting at but I think you're thinking a little too hard about it. IFS=\\n would actually look for the string "\n" as you're escaping the \ character. You shouldn't be looking for that string, you need to look for a new line character. Therefore "\n" is correct. It's difficult to explain, did anyone understand that?
__________________
If it squeals, don't smoke it.
TooDice is offline   Reply With Quote