![]() |
what's the equivalent of -e in ssh
i'm using something like this to determine if a file exists in Perl:
if(-e "myfile") how do I do in an .sh file without getting a "No such file or directory" output like I get when I use the "ls" command? |
if [ -e "file.txt" ]; then
echo "Wow its there"; fi |
Quote:
thanks. now I'm going to use the "ls" command anyway for something else. is there a way to suppress the error message: "No such file or directory" if there really is no such file or directory ? |
All times are GMT -7. The time now is 08:44 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123