Link to home
Start Free TrialLog in
Avatar of Carletto
CarlettoFlag for Italy

asked on

Linux bash command help

Hello ,
I know this is a simple question but I have the following command that gives 2 output lines.
[root@machine ~]# yum repolist -v | grep Repo-id | grep rhel-x86_64-server-7
Repo-id      : rhel-x86_64-server-7
Repo-id      : rhn-tools-rhel-x86_64-server-7

Open in new window


The only valid is the first one Repo-id      : rhel-x86_64-server-7 how can I write the command in order to exclude Repo-id      : rhn-tools-rhel-x86_64-server-7

thank you
C
SOLUTION
Avatar of max_the_king
max_the_king

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Carletto

ASKER

Thank you all .
Carlo