search a string in 1GB File in unix

May 30, 2011 at 05:19:21
Specs: Windows XP
It should be helpful for either static or dynamic file in unix.

Dynamic file is nothing but live application running log file in unix.


See More: search a string in 1GB File in unix

Report •

#1
May 30, 2011 at 19:43:39
And the question is???

Click Here on HowTo ask good Question to get best Help
Let us know, if the problem is solved !!!


Report •

#2
May 31, 2011 at 00:18:33
How to search a string in 1GB File in Unix which should be applicable to all operating systems Linux,SunOS,AIX etc and it should be faster to execute to return the output and needs the Unix Shell Script.

Report •

#3
May 31, 2011 at 00:49:41
What's wrong with "grep"?

Report •

Related Solutions

#4
May 31, 2011 at 02:25:15
That's need to be Unix Shell Script for Application Logs which will be sither static or dynamic file and few of the options for grep doesn't work in AIX.

I need a shell script for searching a String in 1GB File in unix.


Report •

#5
May 31, 2011 at 07:49:45
I don't understand why it has to be a shell script when a standard Unix utility exists to do the job. What features of grep are missing in the AIX version that you need for this purpose?

This is beginning to sound like a homework question rather than a genuine need.


Report •

#6
May 31, 2011 at 09:07:40
As ijack stated, you can use grep or egrep to search strings in a file.
Grep and egrep are also applicable in shell scripts.

Click Here on HowTo ask good Question to get best Help
Let us know, if the problem is solved !!!


Report •

Ask Question