Good Morning..!!
Thanks in advance for suggestions...
The solution required in linux and UNIX
i have two commands output. i want to compare from 1st command to 2nd command out and list out the difference items
runmqakm -cert -list all -db /var/mqm/qmgrs/ssl/key.kdb -pw agsgsg -type cms
! verisign certficate 1
! verisign certificate calss 3 type -3
! verisign class type 4 -G3
! verisign class type 4 -G5
runmqakm -cert -list all -db /var/mqm/qmgrs/ssltmp/key.kdb -pw agsgsg -type cms
! verisign certficate 1
! verisign certificate calss 3 type -3
! verisign certificate calss 3 type -5
! verisign certificate calss 3 type -7
here the 3rd and 4th certificates of 1st command are not available in the second command output. i want to list out those 2 certs details...the extra certs of 2nd command output can be ignored.
! verisign class type 4 -G3
! verisign class type 4 -G5
comparision of two commands output in UNIX/LINUX
Moderator: DosItHelp
Re: comparision of two commands output in UNIX/LINUX
We don't deal with Unix/Linux shell scripts on this forum.
-
- Posts: 208
- Joined: 26 Dec 2013 09:28
- Contact:
Re: comparision of two commands output in UNIX/LINUX
Have you ever read the mantra of differences?
Maybe you need use comm
Maybe you need use comm
Code: Select all
comm -23 file1 file2