sed

sed can be used to replace text in a file.

g = Global, replace everything in a file.
s = substitute text
-i = update the file.

Delete lines matching string

To delete lines having a string and print result.

To update the file, use -i option

Search & Replace using rpl

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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