Re: want to ask how to use grep -v repeatly



On 5 Sep 2006 01:25:27 -0700, atroposluk@xxxxxxxxxxxx
<atroposluk@xxxxxxxxxxxx> wrote:
hi all,

i am a new user for unix, and is writing a script for working purpose.
i find that it can use "grep -e" to grep more than a string in a "grep"
command, could someone tell how can I "grep -v " more than a string in
a command, cause the machine i'm using is very busy. when I pipe the
result of "ps -ef" to more than one pipe, it comes out very slow and
sometime hold for seconds. it make my scripts outcome very slow.

many thks for yr helps. ^_^

Perhaps you can use "egrep -v"?


--
It is the nature of extreme self-lovers, as they will set an house on fire,
and it were but to roast their eggs.
-- Francis Bacon
.



Relevant Pages

  • Scripts using SSH and SSH_ASKPASS
    ... To test SSH scripts you better destroy the control TTY. ... The trick is to run YOUR script on YOUR local ... As for the password relaying command: this needs not be an X command. ... # we read one line from a temporary pipe. ...
    (comp.security.ssh)
  • Re: Some bash questions :-)
    ... The bash command below is meant to firstly list all files with the ... Try `grep --help' for more information. ... You probably don't want to "pipe" it per se. ... of the readlink command as an argument to cd, ...
    (comp.os.linux.misc)
  • [opensuse] Add variables to standard output for
    ... output - the finger command) ... I want to take the standard output from a grep ... My script: ... The views expressed in this e-mail are the views of the individual sender and should in no way be construed as the views of the Company. ...
    (SuSE)
  • Re: new guy ksh scripting questions
    ... script to be called from the crontab of the Oracle user. ... command into a grep command looking for ALIVE, pipe that into a wc -l ... then echo good ...
    (comp.unix.aix)
  • Re: Need info! Detecting data in a pipe (|)
    ... I currently have a KSH script which is called by a 3rd party ... This script can receive as many as 2 command line options, ... This is how I know data is being fed to my script via a pipe. ...
    (comp.unix.shell)