Old school programmer who likes to code, test and try.
Use and replace special non ascii double quotes like
How to print <x> lines before and <y> lines after <z>th line Print a range of lines techniques & Benchmarks
Also: cat line X to line Y on a huge file
comparing two files line by line using comm and diff: comparing two files line by line