Timeline for Sorting a table with a non-newline record separator in bash
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 27, 2021 at 8:12 | history | edited | fuumind | CC BY-SA 4.0 |
added tag
|
| Oct 27, 2021 at 8:07 | comment | added | Inian |
If its a delimiter other than \n or \0, sort is of no help to you. What ever other tools that you could use Awk/Perl or GNU datamash all rely on knowing what the delimiter is | and sorts it (like my answer)
|
|
| Oct 27, 2021 at 8:06 | comment | added | Inian |
You can't use sort then. The man page says 'The sort utility sorts text and binary files by lines. A line is a record separated from the subsequent record by a newline (default) or NUL '\0' character'
|
|
| Oct 27, 2021 at 8:03 | history | edited | fuumind | CC BY-SA 4.0 |
Made examples in the question consistent
|
| Oct 27, 2021 at 7:57 | history | edited | fuumind | CC BY-SA 4.0 |
Clarified details in the question
|
| Oct 27, 2021 at 7:49 | history | edited | fuumind | CC BY-SA 4.0 |
rephrased the addendum in order to clarify
|
| Oct 27, 2021 at 7:33 | history | edited | fuumind | CC BY-SA 4.0 |
Added a desired condition.
|
| Oct 27, 2021 at 7:22 | answer | added | Inian | timeline score: 4 | |
| Oct 27, 2021 at 7:10 | history | asked | fuumind | CC BY-SA 4.0 |