Thursday, May 23, 2013

File test operators

File test operators:

-e
file exists

-a
file exists (same as -e, but deprecated)

-f
file is a regular file (not a directory or device file)

-d
file is a directory

-h (or -L)
file is a symbolic link

No comments:

Post a Comment