GNU Info

Info Node: (sh-utils.info)File characteristics tests

(sh-utils.info)File characteristics tests


Next: String tests Prev: Access permission tests Up: test invocation
Enter node , (file) or (file)node

File characteristics tests
--------------------------

   These options test other file characteristics.

`-e FILE'
     True if FILE exists.

`-s FILE'
     True if FILE exists and has a size greater than zero.

`FILE1 -nt FILE2'
     True if FILE1 is newer (according to modification date) than FILE2.

`FILE1 -ot FILE2'
     True if FILE1 is older (according to modification date) than FILE2.

`FILE1 -ef FILE2'
     True if FILE1 and FILE2 have the same device and inode numbers,
     i.e., if they are hard links to each other.


automatically generated by info2www version 1.2.2.9