If you ever find yourself typing : # command | grep pattern | awk '{print $3}'
you can shorten this by using the regexp matching in awk, like this:
# command | awk '/pattern/{print $3}'
# command | awk '/pattern/{print $3}'
Repository for Solaris System Administrators
No comments:
Post a Comment