Matching files with various extensions using for loop [duplicate]

Lose the spaces; bash cares.

for file in "${arg}"/*.{txt,h,py}; do

Leave a Comment