Today I needed to clear history from some command. I looked into history and used grep to filtering command I needed.
for i in $(history | grep something | grep -oE "[0-9]{1,} " | sort -rn); do history -d ${i}; done
My main background for a recent years is MySQL DEV/DBA engineer but I’m also participating in wider range of tasks which could be likely called as DataOps/DevOps tasks. You can see my online CV here: http://catyellow.net