Search Results

Search: Posts Made By: oinkl
3,774
Posted By oinkl
Fails as in, grep doesn't find any results. ...
Fails as in, grep doesn't find any results.

Then output an error message such as, "User is not logged on"



Er... why not? Is there another command I can use?

I don't want to run things...
3,774
Posted By oinkl
Breaking out of a pipe
I have the following command in a Bash shell script:

who | grep -w $1 | some other commands

If grep fails, an error message is displayed. How do I test if grep fails and still be able to pipe...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy