Search Results

Search: Posts Made By: angshuman_ag
17,115
Posted By angshuman_ag
Taking the value into a variable worked ! Thanks
Taking the value into a variable worked ! Thanks
17,115
Posted By angshuman_ag
How TO: if [ Not Equals ] - Solaris 8
Hi,
I have the following script which runs well :-


ls -l /etc/*.txt > /dev/null 2>&1

if [ $? -eq 0]; then
"Success"
fi


But, if I try,

if [ $? -ne 2]; then
"Success"
fi
...
Showing results 1 to 2 of 2

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