Checking Before You Act: File Tests
File tests let a script look before it acts: -e asks whether a path exists, -f and -d whether it's a file or a folder, -s whether a file has anything in it, and -nt whether it's newer than another.
Updated

- Category
- Bash
- Level
- Apprentice
- Tags
- Directory, file-test, linux, modification-time, test-command, unix