How do I delete a line only if it is at the specified line number and it matches the pattern?
3662
How can I replace a string in a file(s)?
141213
How do I check if a filename matches a wildcard pattern
153258
Find the line number which contains the pattern using custom regex delimiter
7986
How can I remove a trailing newline?
98217
Using Sequence to delete a part of an expression
142565
How to replace only the Nth occurrence of a pattern in a file?
29090
Return only the portion of a line after a matching pattern
83564
How to grep lines which does not begin with "#" or ";"?
58770
Remove the last line from a file in Bash
16791
Delete all lines of text that isn't all numbers
140208
Linux, find all files matching pattern and delete
50943
shell test whether multiple lines string contains specified pattern in last line
71992
Replacing pattern only when it matches a whole word
136673
How to print file content only if the first line matches a certain pattern?
102631
Replace identical lines with just one line at end in Notepad++
4497
Delete specific line number(s) from a text file using sed?
80204
How can I get a specific line from a file?