Here’s a bash script to replace ‘10.11.12’ with ‘192.168.100’ in all .conf files: Alternative one-liner (without backups): Alternative one-liner (with backups): Key points: To use the script: The
Tag: sed
Bash
Use the sed or grep command in Linux to remove all lines from a file that start with a specific character
You can use the sed or grep command in Linux to remove all lines from a file that start with a specific character. If you want to edit
Bash Linux Perl
Find and Replace Text Across Multiple Files with One Command
Replace whole line containing a string using Sed