permanently alter file
sed -i expression filename
delete lines containing word exit in bash history file
$ sed -i '/^exit$/d' ~/.bash_history