I'm very new to bash scripts but I was looking to build a script that essentially goes through a directory and its subdirectories and files.
The top level directory would be the location of images so top level may be "293 House Street" and in that would be subdirectories of each room "Bathroom", "Kitchen", etc. and within those sub directories would be images. There may also be images found in the top level.
I want to essentially invoke the PHP command once a file has been found and provide some arguments for the data to be used.
php process_directories.php -a "293 House Street" -p "PATH_OF_FILE" -f "FILE"
-a Would be the Address // This will always be the same for each file found in the current directory.
-p Would be the path of the file
-f Would be the file.
Is there a good way to possibly make a script like this?