Hi I've encountered the following problem. , Oh i'm using cygwin.
The folllow command
$ find . -name 'BuildLog.htm' -printf "'%P'\n\r"
and it works exactally as I expect. It finds all BuildLog.htm files from the current directory and below. Then prints out each file path\name as a quoted string.
However whin I try and script it the script runs witout errors but finds nothing
echo find . -name $LOG_FILE -printf $Pattern
find . -name $LOG_FILE -printf $Pattern