bash: delete all lines starting with a certain string
From stackoverflow:
# Test it on a copy of your file first! file=YOURFILE.txt cp $file tempcopy grep -v '^- tags' tempcopy > $file rm tempcopy
From stackoverflow:
# Test it on a copy of your file first! file=YOURFILE.txt cp $file tempcopy grep -v '^- tags' tempcopy > $file rm tempcopy