3 ms·
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]* /
by claudius 13y ago
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.
- ctrl_freak 13y agoYeah I just realized that. Fixed.