2 ms·
In a POSIX shell, I actually prefer to use the bell character for IFS. while IFS="$(printf \\a)" read -r field1 field2... do ... done This works just as
by chasil 3y ago
In a POSIX shell, I actually prefer to use the bell character for IFS.
while IFS="$(printf \\a)" read -r field1 field2...
do ...
done
This works just as well as anything outside the range of printing characters.
- quesera 3y ago> I actually prefer to use the bell character for IFS Heaven help you if you cat the source file in a shell, though!