sed remove line containing 1

sed remove line containing

sed '/pattern to match/d' ./infile

Here is what the above code is Doing:
1. The sed command is used to find and replace text within a file.
2. The -i option is used to specify that the file should be edited in-place.
3. The ” characters are used to specify that no backup of the file should be created.
4. The ‘/pattern to match/d’ is the pattern that is used to find and delete the matching line.
5. The ./infile is the file that is searched for the pattern.

Similar Posts