Timeline for Cat with Headers and Line Numbers?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Sep 17, 2024 at 16:04 | history | suggested | AsukaMinato | CC BY-SA 4.0 | syntax highlight |
| Sep 17, 2024 at 15:44 | review | Suggested edits | |||
| S Sep 17, 2024 at 16:04 | |||||
| May 17, 2023 at 22:51 | comment | added | G-Man Says 'Reinstate Monica' | BTW, tail -n +1 * will print each file with a leading header (formatted as “==> %s <==”) if there is more than one file. (If there is only one file, it basically acts like cat.) You can request the headers with -v. Also, it prints blank lines between the files, which increases readability but may be undesirable if the user specifically wants the output formatted as shown. … … … … … … … … … … … … … … … … … … … Also, isn’t “leading header” redundant? | |
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot | replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/ | |
| Oct 30, 2011 at 16:53 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 | print the name of the correct file on the end line; we're counting characters, not bytes (thanks fered) |
| Oct 29, 2011 at 16:48 | comment | added | Peter.O | Line FNR == 1 && NR != 1... prints the wrong filename... and it counts characters, not bytes (re non ASCII text) | |
| Oct 29, 2011 at 15:42 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |