Re:Too Many Knobs
by tehrei on Friday June 10, 2016 @06:30AM
(#11875417)
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.
[ Parent
| on HN ]
Re:Too Many Knobs
by JoshTriplett on Friday June 10, 2016 @02:55PM
(#11878946)
> 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?