Which command should I use to print a part of text files knowing where this part starts and finishes?
For example:
columnA columnB columnC
baba bobo bibi
caca coco cici
. . .
. . .
zaza zeze zizi
EndA EndB EndC
In all my files I have exactly the same text for columnA(columnB ...) and EndA(EndB ...), what I want to do is to print what is in between them, i.e., baba(bobo ...) which is different for each file.
I was doing that using, grep | cut | tail, but then I have to write ( and find) new patterns each time I have a new file as the number of lines of each of them are different. I suppose there is a much more smarter ( and generic) way to do that using awk or sed.