I use importing systems based on delimited text files. The files used can sometimes be almost 2 Gb big and I have to check some lines from that file. So I want to know how ca
You can do this with many Unix tools, for instance with awk:
awk
# print first 5 lines with awk awk 'NR>=1&&NR<=5{print}NR>=6{exit}' file # print selection of lines awk 'NR==994123||NR==1002451||NR==1010123{print}NR>1010123{exit}' file