07-01-2015
Did you consider using grep -r (if that option is available on your system)?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We are using HP unix how to find out how many number of CPU's in the system. (7 Replies)
Discussion started by: salaathi
7 Replies
2. Shell Programming and Scripting
Hi all,
Im new to linux... Im in need to write a shell script to check wthr JRE in linux machine... Wtz de best way to find thru BASH?? Plz help me out to solve this issue...
Thanks (3 Replies)
Discussion started by: XivaX
3 Replies
3. Ubuntu
I need list of 3rd party softwares installed in a Unix server (eg: Fedora / RedHat). I know if they are system supported format (like rpm format for fedora/redhat, pkg format for debian/ubuntu etc) we can list them by system specific commands ($ rpm -qa). But how to list the softwares installed... (3 Replies)
Discussion started by: uday123
3 Replies
4. UNIX for Advanced & Expert Users
hey ,
Anyone knows command to find when Linux OS is installed?
Date and time? (2 Replies)
Discussion started by: crackthehit007
2 Replies
5. Shell Programming and Scripting
How can i check if sqlldr has been installed on my AIX/UNIX mechine?
Is there any unix script to check this one out.... (0 Replies)
Discussion started by: msrahman
0 Replies
6. Shell Programming and Scripting
Hi All,
I have a requirment, i need to get the list of all the process which are running from last two days on my unix server and also to put this list into an another file.
i am giving you a sample example :
$ ps -ef
UID PID PPID C STIME TTY TIME CMD (1 Reply)
Discussion started by: akshu.agni
1 Replies
7. UNIX for Dummies Questions & Answers
hi, guys,
now I face a problem. I have developed an application, and when it starts, it shall check if an application has been installed on the running linux/unix. If result is positive, i do something with the application command.
just as an example: I want to check if sshd has been... (3 Replies)
Discussion started by: sk1418
3 Replies
8. UNIX for Dummies Questions & Answers
Hi Team,
I understand that this query does not involve Unix exactly, but can anyone give me pointers as to know which Servers host a particular certificate i.e xyz.intra.com . The Development team has left long back and we have no idea how to ascertain on which servers the certificate is hosted... (1 Reply)
Discussion started by: srkmish
1 Replies
9. Shell Programming and Scripting
Hello all,
I have a task to patch red hat servers and some servers have a corrupted rpm database and return the error:
Error: rpmdb open failed
I know how to fix this when it occurs. What I'm hoping to do is scan a list of servers by IP and report back which server have this error.
... (6 Replies)
Discussion started by: greavette
6 Replies
10. UNIX for Beginners Questions & Answers
Hello Forum,
I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so:
APP=application --version
But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
ZGREP(1) General Commands Manual ZGREP(1)
NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO
grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)
ZGREP(1)