Answers for "how to delete a line in a file in linux"

0

delete lines text file linux

sed -i '' '/pattern to match/d' ./infile
Posted by: Guest on October-20-2020
0

linux remove lines from file

grep -v "pattern" file > temp && mv temp file
Posted by: Guest on September-13-2021

Code answers related to "how to delete a line in a file in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language