Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
delete lines text file linux
Irene
Programming language:
Shell/Bash
2021-01-29 13:25:09
12
Q:
delete lines text file linux
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
text
linux
text file
Related
delete all the files without one in linux
linux remove lines from file
bash remove first character from line
bash how to remove all whitespace from a file
how to delete files in linux
vim delete line
delete first two lines of file linux
linux sed remove string in file
bash how to delete a specific line from a file
bash how to remove the first n lines of a file
awk how to remove lines in one file that are found in another file
How can I remove the first line of a text file using bash/sed script?
print line from word file linux
New to Communities?
Join the community