Skip to main content

Bash deleting a line in a text file containing a specific string

If you want to delete a line inplace using sed utility "-i" option should be used:

sed -i -e "/<string pattern>/d" <text file>

Comments

Popular posts from this blog