comparision of two commands output in UNIX/LINUX
Posted: 28 Jan 2014 11:03
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
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