- or download this
./check.sh: line 3: firstscript: command not found
./check.sh: line 4: secondscript: command not found
- or download this
-e file
True if file exists.
...
-G file
True if file exists and is owned by the effective group
+id.
- or download this
-x file
True if file exists and is executable.
- or download this
#!/bin/bash
echo -e "received arguments >$*<"
...
else
echo -e "$filename is not readable or doesn't exist";
fi