how to delete history in range in linux code example Example: delete history linux range $ for line in $(seq 1800 1816) ; do history -d 1800; done