The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 02-10-2009
learnbash learnbash is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 96
Quote:
Originally Posted by vgersh99 View Post
Code:
bash-2.05$ ls foo
foo: No such file or directory
bash-2.05$ echo $?
2

Hello,

thanks for your reply, but i want to replace only true output to "1", ls always return "0" how could i replace only ls command output to "1".

Thanks,
Bash