I'm trying to look for a file from a database. I'm getting the data from a php file just fine. It's just this one line I'm having issues with:
directory=`find ./ -type f -name "*$thismodelnormal*" -exec ls -la {} \;`
$thismodelnormal is just a string, but it's dynamic based on data from the database. Can anyone enlighten me on how to get this done? I've done a good bit of research already and couldn't find a solution.. surely somebody has done this before though.
echojust before thefind, to see the command you end up running. Does pasting it into your terminal (starting from PHP's working directory) give you what you expect?set -xto the top of the script, to see the commands as they're executed.