Read GC log via UNIX Shell script

Posted on 2016-08-02
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 500 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Writing a UNIX script menu allowing for multiple options. 5 87
egit plugin on eclipse 8 82
How to execute a Python program and gather return output in Java 2 40
awk sed 8 64
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This video teaches viewers about errors in exception handling.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

839 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