Quote:
Originally Posted by BW-userx
Note:
it is then what takes place by the way you have it written?
|
I reversed the logic for (! -f). I should have checked my work.
Hope I didn't void my Warranty!
Shoulda/Coulda/Woulda?
Code:
touch LQRocks
if [[ ! -f LQRocks ]] ; then echo "Not found"; else echo Exists ; fi
Exists
rm LQRocks
if [[ ! -f LQRocks ]] ; then echo "Not found"; else echo Exists ; fi
Not found
Good eye! Thanks.