On Fri, 20 May 2011, Andrew Hills wrote:

On Fri, May 20, 2011 at 2:06 PM, Kurt H Maier wrote:
[...] wouldn't something akin to

history | sort -r | sed '1d; s/^[ \t]*[0-9]*[ \t]*//'

work just as well?

Didn't realize `sed` didn't have \d, but why [ \t] instead of \s?


[...] (Don't forget to escape your asterisks in sed.)

Why would you escape the asterisks here? It's not looking for literal asterisks.

--
Best,
Ben

Reply via email to