#!/usr/bin/env bash rmhist() { start=$1 end=$2 count=$(( end - start )) while [ $count -ge 0 ] ; do history -d $start ((count--)) done }