Hacker News new | ask | show | jobs
by tehrei 3662 days ago
Like, say, IFS in bash. Have you ever needed to set IFS? Do you know what it does? I've set it maybe 5 times and practically each one was to $'\n' so I can read newline-delimited input values in a while loop. But I appreciate the fact that I can set it to literally anything, if I ever need to.
1 comments

> I've set it maybe 5 times and practically each one was to $'\n' so I can read newline-delimited input values in a while loop.

Does "| while read line" not do what you want here?