I'm writing a program that uses a Linux command to check if a file exists on the local server.
The program executes a command with a supplied argument
ls *ARG_GOES_HERE* &> /dev/null
and then checks the status if it was able to find the file or not.
The problem is that sometimes the file is not a straight forward path like
Sometimes the image location is stored using the web location
Which fails in the linux command.
Is it possible to check if an image exists on a local apache location using bash?