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, BenReceived on Fri May 20 2011 - 20:46:11 CEST
This archive was generated by hypermail 2.2.0 : Fri May 20 2011 - 20:48:04 CEST