aspose file tools*
The moose likes Linux / UNIX and the fly likes log file access - grep/tail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "log file access - grep/tail" Watch "log file access - grep/tail" New topic

log file access - grep/tail

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1368
I want to grep the log file entries based on source and destination string values. eg: My String1 in 720th line and String2 is in 11000th line.
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29287

sed and awk are more powerful than grep when it comes to this kind of thing.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
jQuery in Action, 2nd edition
subject: log file access - grep/tail
Similar Threads
Search tool to search all class files
File find utility?
struts2: Generating list of localisation keys?
how to fetch rows based on line numbers or based on the beginning of a word
memory/cpu issue of reading/writing files