Removing a range of history lines from bash history


You would like to remove some lines from the bash history (ie using cut and paste with wrong values).


You can use the following, taken from the answer here

where start_line is the start of the lines you want to remove and no_of_lines is the number of lines you want to be removed.