Sed – Delete one or more lines from a file

sed -i “.bak” ‘text to locate’ /root/file_to_delete_lines.txt

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.