Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My history seems to have timestamps on FreeBSD-CURRENT running bash.

I had to use

history | sed "s/^[0-9 ]//" | sed "s/ | */\n/g" | awk '{print $3}' | sort | uniq -c | sort -rn | head -n 100 > commands.txt



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: