Timeline for bash: read: how to capture '\n' (newline) character?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 1, 2017 at 16:19 | comment | added | meuh |
You need to prefix the read into a variable with IFS=
|
|
| Aug 1, 2017 at 15:30 | vote | accept | Tom Hale | ||
| Aug 1, 2017 at 15:28 | vote | accept | Tom Hale | ||
| Aug 1, 2017 at 15:30 | |||||
| Aug 1, 2017 at 15:27 | comment | added | Tom Hale |
To do this in POSIX sh, see here.
|
|
| Aug 1, 2017 at 15:26 | history | edited | Tom Hale | CC BY-SA 3.0 |
Remove posix, move to comment
|
| Aug 1, 2017 at 15:25 | answer | added | Stéphane Chazelas | timeline score: 7 | |
| Aug 1, 2017 at 15:24 | answer | added | xhienne | timeline score: 5 | |
| Aug 1, 2017 at 15:23 | history | edited | Tom Hale | CC BY-SA 3.0 |
Add ability to capture '\004'
|
| Aug 1, 2017 at 15:06 | history | asked | Tom Hale | CC BY-SA 3.0 |