get history command without line numbers

C++
Just use cut command to cut first 8 chars and get history without numbers
history | cut -c 8-
Source

Also in C++: