Sponsored Content
Full Discussion: Difference between commands
Operating Systems Solaris Difference between commands Post 302739473 by Scott on Tuesday 4th of December 2012 08:52:06 AM
Old 12-04-2012
The second one excludes grep itself from the result, and can also be achieved like:

Code:
ps -ef | grep [o]racle

You could easily have found an answer to this by searching the net, or the forum. Please search first.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

what's the difference of these two commands?

shouldn't they give the same output? echo `echo \`date\`` is the same as the command date echo `echo date` prints the word date thanks! (3 Replies)
Discussion started by: kfad
3 Replies

2. Solaris

difference between these commands??

Hi, I would like to know what is the difference between executing the mount command in the following ways... eg: /usr/sbin/mount -F <something> AND mount -F <something> I mean , just executing the mount command as opposed to specifying the path and then executing it? ... (3 Replies)
Discussion started by: wrapster
3 Replies

3. UNIX for Dummies Questions & Answers

Difference in commands

Hello All, I have a question about the difference between two commands. I am using Korn and was told by the Unix admin that 'nohup <command> &' equals 'nohup ./<command> &. That there is no difference betwewen the two. Is this true? Also, does the command './<command> &' provide a disconnect... (4 Replies)
Discussion started by: grin1dan
4 Replies

4. Shell Programming and Scripting

Difference in auth key commands?

Good morning! What is the difference between: ssh-keygen -t rsa and ssh-keygen -b 2048 -t rsa? Thanks Bigben (2 Replies)
Discussion started by: bigben1220
2 Replies

5. Shell Programming and Scripting

Difference between the commands

HI all, Please clarify the difference between the following pm2srv:/var/opt/temip/vf/scripts/saiki#awk '{RS = ":"} ; {print $0}' testf2 hey:wasup:howru: Yes I am fine pm2srv:/var/opt/temip/vf/scripts/saiki#awk 'BEGIN { RS = ":" } ; { print $0 }' testf2 hey wasup howru Yes I... (0 Replies)
Discussion started by: saiki
0 Replies

6. UNIX for Dummies Questions & Answers

Check for difference in output of 2 commands?

Hello! I'm just learning the shell, and I would really like to know how to do this: Given these 2 commands: ls -l ls -le How can I, with a one-liner, ask the shell to show me visually in the shell, what the difference is between the output of the two commands? They look the same to me... (6 Replies)
Discussion started by: turbofayce
6 Replies

7. Shell Programming and Scripting

Difference between 2 grep - commands

Hi, I need to know the difference between this commands: grep * *search* grep "*" *search* As far as i know does the 2nd command search for files which have a name with *search* and greps then all which have chars from a-z in the file content. But was does the first command?? Best... (1 Reply)
Discussion started by: xus
1 Replies

8. Solaris

Performance difference between commands

Looking at the performance hit on my server, does it matter wich command I run? client # rsh server tar –cf - . | tar –cv –f – or server # tar –cf – . | rsh client ‘cd target && tar –xv -f –‘ I think it doesn't really matter because both command strings involve a tar being run on... (4 Replies)
Discussion started by: petervg
4 Replies

9. AIX

HACMP: difference between 'cl' commands and 'cli' commands

Hi all, I'm new in this forum. I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli". The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory. I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies

10. Shell Programming and Scripting

Difference between these cron commands

Hi all I want to make sure I was understanding this correctly if a cron job command was * */20 * * * command does that mean this command will run every 20 hours? also what is the difference between the following two? 0,20,40 * * * * command 20 * * * * command I believe the first... (3 Replies)
Discussion started by: subway69
3 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 is used to invoke the grep on compress'ed or gzip'ed files. All options specified are passed directly to grep. If no file is speci- fied, 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 zgrep is invoked as zegrep or zfgrep then egrep or fgrep is used instead of grep. If the GREP environment variable is set, zgrep uses it as the grep program to be invoked. For example: for sh: GREP=fgrep zgrep string files for csh: (setenv GREP fgrep; zgrep string files) AUTHOR
Charles Levert (charles@comm.polymtl.ca) SEE ALSO
grep(1), egrep(1), fgrep(1), zdiff(1), zmore(1), znew(1), zforce(1), gzip(1), gzexe(1) ZGREP(1)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy