Read GC log via UNIX Shell script

Posted on 2016-08-02
Medium Priority
Last Modified: 2016-08-03

Please let me know if we have any simple UNIX shell script to read GC log in easy way.

Question by:rsvijay
  • 2
LVL 86

Expert Comment

ID: 41740217
Why would you need a script to read a text file?
LVL 38

Accepted Solution

Gerwin Jansen, EE MVE earned 2000 total points
ID: 41740287
more <GC logfile>

(press space to go to next page)


grep <somestring> <GC logfile> | more

(to search for occurrence of <somestring>)
LVL 86

Expert Comment

ID: 41740288

less <logfile>

/<searchstring> to search

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question