The history
command is a command that I use daily. It can be used to list Bash’s log of the commands that you have typed. The results of that command include line numbers. Every now and again, it would be nice to execute history
to retrieve a list without line numbers. This would greatly simplify the creation of script.
it is possible with a simple command. It’s here because I seem to always forget it.
history | cut -c 8-
Source(s)
http://stackoverflow.com/questions/7110119/bash-history-without-line-numbers