Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. munderw2

    shell script

    I'm writing a script in solaris 9, and need to test the standard out of a grep operation to see if it finds anything. Any ideas? Here's the code i have: onstat -u|grep "Y--P"|awk '{print $1,$2,$3}' I want to put it in an if statement like this: If grep returns something then else exit fi

Part and Inventory Search

Back
Top