Dear friends
I have a file say file.txt
and contents are
mdffaf klafjsa fa
fka f ljafkljsaf
akf safksafa
AAAA ZZZZ afjla fsa kfjsaflaa fa fsa afa faf a
kafksa f dsa fa afhsaf; akksa; a fsal fsa sa
a hs;af 'safhjksa
sa hjasakflfjl sakj sajklf sa
a jfklajf sasa
f jklafsa fsaf
safjksaf safa
BBBB XXXX fagsa gag aafa
kljafs;aklfjf
ajsafjlsafjdsafsa
klafjsajfklfsa
.
.
.so on
now I want to make a script which prints the line starting with AAAA ZZZZ and ending with line BBBB XXXX
there are two words with one tab space I tried the formula at http://www.unix.com/unix-dummies-que...text-file.html
but it prints all the line except both two line but i really want that it should print the lines between these two lines including both only.
anybody having idea please share....
I have a file say file.txt
and contents are
mdffaf klafjsa fa
fka f ljafkljsaf
akf safksafa
AAAA ZZZZ afjla fsa kfjsaflaa fa fsa afa faf a
kafksa f dsa fa afhsaf; akksa; a fsal fsa sa
a hs;af 'safhjksa
sa hjasakflfjl sakj sajklf sa
a jfklajf sasa
f jklafsa fsaf
safjksaf safa
BBBB XXXX fagsa gag aafa
kljafs;aklfjf
ajsafjlsafjdsafsa
klafjsajfklfsa
.
.
.so on
now I want to make a script which prints the line starting with AAAA ZZZZ and ending with line BBBB XXXX
there are two words with one tab space I tried the formula at http://www.unix.com/unix-dummies-que...text-file.html
but it prints all the line except both two line but i really want that it should print the lines between these two lines including both only.
anybody having idea please share....
Comment