Timeline for How can I remove duplicates in my .bash_history, preserving order?
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Feb 3 at 13:47 | history | suggested | Daniel Kaplan | CC BY-SA 4.0 | I copied a comment into the answer because the answer gives no explanation of how it "extends" Clayton's answer. |
| Feb 2 at 8:16 | review | Suggested edits | |||
| S Feb 3 at 13:47 | |||||
| S Apr 29, 2024 at 9:47 | history | suggested | Amazon Dies In Darkness | CC BY-SA 4.0 | Improved readability |
| Apr 29, 2024 at 6:47 | review | Suggested edits | |||
| S Apr 29, 2024 at 9:47 | |||||
| Oct 22, 2021 at 15:39 | comment | added | Jonathan Hartley | Aha, from man sponge: Unlike a shell redirect, sponge soaks up all its input before writing the output file. This allows constructing pipelines that read from and write to the same file. | |
| Oct 22, 2021 at 15:38 | comment | added | Jonathan Hartley | $ sponge -h: soak up all input from stdin and write it to <file>. I don't yet understand why it has been appended to Clayton's answer. (although I suspect it is incidental, and the main value of this answer was using 'tac', which Clayton later incorporated in his answer too.) | |
| Oct 22, 2021 at 15:25 | comment | added | Jonathan Hartley | Can you explain what sponge is, and why you appended it to Clayton's answer? | |
| Oct 8, 2019 at 19:32 | comment | added | drescherjm | I needed history -c and history -r to get it to use the history | |
| Jun 11, 2015 at 20:26 | comment | added | tralston | For those on Mac, use brew install coreutils, and notice that all the GNU utils have a g prepended to avoid confusion with the BSD built-in Mac commands (e.g. gsed is GNU whereas sed is BSD). So use gtac. | |
| Jan 19, 2015 at 10:23 | history | answered | Ali Shakiba | CC BY-SA 3.0 |