[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Add option to just print history, with no added timestamps or line numbe
From: |
Dan Jacobson |
Subject: |
Add option to just print history, with no added timestamps or line numbers |
Date: |
Sun, 24 Mar 2024 13:40:10 +0800 |
$ help history
should mention how in the world one is supposed to just print the plain history,
without any line numbers or time stamps.
You might say, "Just strip it off with perl or sed." Well, fine. Then mention
that in help history.
Currently one needs massive superfund environmental clean-up effort
workarounds, e.g.,
$ HISTTIMEFORMAT=' ' history | perl -pwle 's/^\s+\S+\s+//'
Better yet, add a
history -j: Just print history, with no added timestamps or line numbers, etc.
Or OK, there's HISTTIMEFORMAT. How about also a HISTFORMAT (default " %5n %t
%h\n" or whatever,) so one could use "%h\n" for "just give me the history item."
- Add option to just print history, with no added timestamps or line numbers,
Dan Jacobson <=
- Re: Add option to just print history, with no added timestamps or line numbers, Lawrence Velázquez, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Martin D Kealey, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Dan Jacobson, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Lawrence Velázquez, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Dan Jacobson, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Lawrence Velázquez, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Dan Jacobson, 2024/03/25
- Re: Add option to just print history, with no added timestamps or line numbers, Chet Ramey, 2024/03/25