Print out only last revision in list of patches

Home -> UNIX -> Solaris

6797 views

From the computer of: michilimackinac (24 recipes)
Created: Feb 21, 2005


1 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

This will print out a list of patches that omits earlier revs of the same patch. This can be useful to check if a system is at the same level as another (via a diff) system but possibly went through a different patch cycle and ended with different patches at lower revisions.


showrev -p | awk -F- '{hold0=$0; hold=$1; while (getline > 0) { if (hold!=$1) {print hold0; hold0=$0} if (hold=$1) hold0=$0 } }'

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




1 Recipe comments: View comments

Print out only last revision in list of patches by MichaelMcGarrah



Related recipes:

  Show applied patches or check for a specific patch in Solaris
  Install patches manually in Solaris
  get disk and device path
  Determine the CD-ROM device target id in Solaris
  Get MAC address without root
  Remove or backout patches in Solaris
  Solaris: Delete ZFS slices from a disk
  SSH installation on Solaris 8 without reboot
  find which package a file belongs to
  begin_script to mirror two drives on a Netra T2000

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.