if [ -e $name ]; what -e does?

Someone could helps me saying me what -e does within an if construct an followed by a directory or file? thanks very much

1 Answer

See man test for details. -e returns true if the file or directory exists, and false if it doesn't.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like