greycat|home 1254685085 learn if ! command; then ... ## if [[ ! -f thingy ]]; then ... lhunath 1339095069 forget lhunath 1339095075 learn You do NOT need cat to read file contents, ls to get file names, echo to output stuff or $()/`` to run commands. The specifics of your situation will dictate the correct syntax to use. Explain in English.