Timeline for How to remove empty lines from beginning and end of file?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 18, 2021 at 18:26 | comment | added | glenn jackman |
That's a good question. I seems that if we use the default FS, blank lines get ignored: echo $' \t \t ' | awk '{print NF}' prints 0, but if we specify a field separator: echo $' \t \t ' | awk -F '\t' '{print NF}' prints 3
|
|
| Jul 18, 2021 at 17:30 | comment | added | Kusalananda♦ | Does this require that the lines are truly empty, or is it enough that they are blank? | |
| Nov 15, 2019 at 18:19 | history | edited | glenn jackman | CC BY-SA 4.0 |
added 105 characters in body
|
| Nov 14, 2019 at 15:35 | history | answered | glenn jackman | CC BY-SA 4.0 |