DISQUS

DISQUS Hello! Tech-Recipes is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Tech-Recipes

Cookbook of Tech Tutorials
Jump to original thread »
Author

Print out only last revision in list of patches | Solaris | Tech-Recipes

Started by qdideas · 9 months ago

No excerpt available. Jump to website »

1 comment

  • This failed with an awk error on my Solaris 8 system.

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

    Changing the 'awk' to 'nawk' resolved the issue.

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

    Thanks for the tip.

Add New Comment

Returning? Login