Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
linux remove lines from file
user40981
Programming language:
Shell/Bash
2021-03-18 08:13:12
6
Q:
linux remove lines from file
Tomas
Code:
Shell/Bash
2021-01-31 17:39:49
sed -i '' '/pattern to match/d' ./infile
0
Bright Polyglot
Code:
Shell/Bash
2021-01-16 04:13:12
> sed '2,4d' file
0
Tags
line
file
remove
linux
Related
how to delete files in linux
linux how to remove all files with grep
delete first two lines of file linux
bash how to remove the first n lines of a file
shell remove file
bash how to delete a specific line from a file
awk how to remove lines in one file that are found in another file
bash how to remove all whitespace from a file
delete lines text file linux
delete all the files without one in linux
bash remove duplicate lines from a file
linux sed remove string in file
bash delete file
New to Communities?
Join the community