Ravi Sir's Cards › AWS
File tests
This revision card explains File tests. It starts from the need that -f regular file. It describes -d directory. The how-to section notes -s not empty. An example on the card is example.
Read card text
What this card says
Why do we need it?
-f regular file.
What is it?
-d directory.
How to do it
-s not empty.
Example
Example.
[[ -f app.conf ]] && echo ok