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?