I'm supposed to write a bash script that has as an argument a path to a directory which contains a file named checking.txt. It needs to return the following exit codes:
- 4, if the directory doesn't exist
- 5, if that directory is not a subdirectory of /home/user5/task05/
- 6, if checking.txt doesn't exist
How can I write these conditionals ?