SED Commands To delete a text from a file sed '/\<word\>/d' filename.txt To delete word and save changes into another file sed '/\<word\>/d' initial_file.txt > dest_file.txt