Commands follow:
511 clear
512 history
513 history -d 505
514 history
515 history -d 507 510 513
516 history
517 history -d 509
518 history
519 history -d 511
520 history
Can I delete a single one by the history -d 511, but how do I delete the last 10 commands and in between 10 commands history by using a single command in my shell script?
Can we write the bash script and execute it for deletion of history?