#delete ten times the last history line for i in $(seq 1 10)do n=$(history 1 | awk '{print $1}') history -d $ndone
↧
Answer by FIBA for How to delete history of last 10 commands in shell?
↧