Re:Your top 100 unix commands, for science
by ctrl_freak on Sunday May 19, 2013 @01:44PM
(#5733676)
Try:
Of course this doesn't differentiate between quoted pipes and ones actually being used.
[ Parent
| on HN ]
The ‘awk’ there effectively still drops everything after the second limiter, i.e. you won’t get a different result.
Edit:
history | sed -e 's/^ *[0-9]* //' -e 's/| */\n/' | awk '{print $1}' | sort | uniq -c | sort -rn | head -n 100
works for me.
Re:Your top 100 unix commands, for science
by ctrl_freak on Sunday May 19, 2013 @01:52PM
(#5733709)
Yeah I just realized that. Fixed.