The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Checking return value of commands in pipe
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Checking return value of commands in pipe
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
04-23-2007
anbu23
Registered User
Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
Code:
gzip -dc file.gz
&&
sort -u > output.txt echo $?
&& Only if gzip command is successful sort command is executed.
anbu23
View Public Profile
Find all posts by anbu23
Find anbu23's past nominations received
Find anbu23's present nominations given