How to extract first and last lines in a file?
53694
How to read first and last line from cat output?
69966
Split file by number of lines including header in each one
17305
using perl, how to select last 2 lines in the case of each row has same word?
14843
How to remove blank lines from a file (including tab and spaces)?
36913
How to remove lines included in one file from another file?
52489
Get the last line from each of a large number of files, transform them, and write all results to a single new file
106221
Remove extra header lines from file, except for the first line
113282
how to extract part of a filename before '.' or before extension
80516
Return previous line of all matches
24041
Finding first and last index of some value in a list in Python
20432
Processing lines from one text file to another
6168
How do I delete the first n lines and last line of a file using shell commands?
58770
Remove the last line from a file in Bash
43185
Windows batch command(s) to read first line from text file
89775
split file lines based on first field
143494
Print only the Nth line before each line that matches a pattern
18691
Extract filename and extension in Bash