|
I was incorrect
ls -1 C:/cygwin/var/log/img/aut/ | grep TEST01_*\.mqsc produced no output.
Anyway, instead of file="TEST01_*.mqsc", file="TEST01" should suffice as I am only interested in files that start with "TEST", * is for the date and .mqsc is consistent for all files.
However, I was making a silly error in the script. All I had to do was:
file="TEST01"
echo "File = $file"
ls -1 $dir | grep "$file" > test.txt
Thanks for helping me
|