want to run different files under the same program using shell script

suppose have different files
1.1
2.2
3.3
4.4
5.5

All the files have to run under the same command say
tr -d '\n'

so how to run all the files under the same command by using shell script

Do you mean removing all linefeed characters ...

for d in *.*
do
   tr -d '\n' <$d >tmp
   mv tmp $d
done

Simply having all those files say abc,def,ghi,fdg,dgg
and print the new files
can i follow like that
for d in abc, def, ghi, fdg, dgg
do
tr -d '\n' <$d >tmp
mv tmp $d
done

or what else give option
thanks

what are the commas for?

The "for" statement takes elements separated by the normal white space rule.

I thought you wanted the files changed, not printed, hence the ">tmp" and "mv tmp $d".

man tr