PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > grep
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

grep

Réponse
 
LinkBack Outils de la discussion
Vieux 05/12/2006, 14h30   #1
Dattu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut grep

Hi,
I was using grep for quite some time. I came across the option of
" grep -q" on the AIX box to supress the Output of the grep.
I don't see the option available on the grep binary with another
Solaris box. I can use "grep -s" option to supress only the Errored
output. It's still showing the grep output.

I would like know the equivalent option on the Solaris OS for the
"grep -q" of AIX. I can provide the grep utility versions tomorrow
morning only.

Thanks in advance for your time and energy,
Da..

  Réponse avec citation
Vieux 05/12/2006, 15h43   #2
mobidyc
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: grep

"Dattu" <datteswararao@gmail.com> a écrit dans le message de
news:1165329028.115194.318020@79g2000cws.googlegro ups.com...
> Hi,
> I was using grep for quite some time. I came across the option

of
> " grep -q" on the AIX box to supress the Output of the grep.
> I don't see the option available on the grep binary with another
> Solaris box. I can use "grep -s" option to supress only the Errored
> output. It's still showing the grep output.
>
> I would like know the equivalent option on the Solaris OS for the
> "grep -q" of AIX. I can provide the grep utility versions tomorrow
> morning only.
>
> Thanks in advance for your time and energy,
> Da..


Hello,

on solaris you can use the XPG4 version of grep for use the -q flag:
/usr/xpg4/bin/grep

Regards,
Mobidyc


  Réponse avec citation
Vieux 05/12/2006, 15h54   #3
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: grep

On 5 Dec 2006 06:30:28 -0800, Dattu
<datteswararao@gmail.com> wrote:
> Hi,
> I was using grep for quite some time. I came across the option of
> " grep -q" on the AIX box to supress the Output of the grep.
> I don't see the option available on the grep binary with another
> Solaris box. I can use "grep -s" option to supress only the Errored
> output. It's still showing the grep output.
>
> I would like know the equivalent option on the Solaris OS for the
> "grep -q" of AIX. I can provide the grep utility versions tomorrow
> morning only.
>

grep >/dev/null


--
I have a hard time being attracted to anyone who can beat me up.
-- John McGrath, Atlanta sportswriter, on women weightlifters.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h03.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07681 seconds with 11 queries