0

I'm trying to loop through a directory of image files and select only filenames with [space]Tb[space] in the name.

this: joe Tb joe.JPG

not this: bob_Tb_bob.JPG

Here's what I've got, which doesn't work.

files=* Tb *.JPG
    
for f in $files
do

#do stuff here

done

thanks for any help!

0 Answers0