Home » Infrastructure » Linux » Want to view .gz file contents from particular text onwards.
Want to view .gz file contents from particular text onwards. [message #659010] Wed, 04 January 2017 02:50 Go to previous message
Manoj.Gupta.91
Messages: 237
Registered: March 2008
Location: Delhi
Senior Member
Hi All,

I've a huge .gz file which contain only one big log file. I want to see contents of that file from particular text onwards.

Eg. File
This is my first file.
It is used as sample.
I want to see it's contents by scrolling down.
How can I do it.

Eg. I want to search "sample" and see file contents from first occurrence onward.

I can use

zcat filename
zcat filename | grep sample
zgrep sample
but these commands only show me particular lines where as I want to scroll down from first occurrence.

Thanks & Regards
Manoj
 
Read Message
Read Message
Read Message
Previous Topic: Error "ORA-27102:out of memory" during database creation using dbca
Next Topic: sqlplus ORA-12547: TNS:lost contact
Goto Forum:
  


Current Time: Tue Aug 11 23:06:20 CDT 2020