I have files with multiple extension in a folder like .txt, .update, .text. The file names are like
out1.txt, out1.text, out1.update,
out2.txt, out2.text, out2.update
and so on....My command looks like this:
./script.pl out1.txt out1.text out1.update
I would like to put this command in the loop for every file. I have tried to use a loop like:
for i in *.{txt,text,update}
But it takes the full name including the extension so I couldn't figure out how to deduce the specific extension files in the command.
Thanks!