Hello
Hope someone can help me since I couldnt find any good solution of my problem.
I have to add an extension to filenames. Sounds really easy I know but the problem is, the files have variables in it.
Example: zz105_MO zz105_DI zz105_MI etc.
So when I work with those files in scripts, I just use the variable zz105* for them.
Now I have to add the suffix .dmp to any of those files. How is this possible with several files?
Any help will be appreciated, even the simpliest solution
edit: Oh yeah... programming language is using bash/shell
Found the solution in another forum.. if someone wants to know:
for i in $(ls zz105*); do mv $i $i.dmp; done
Thanks to Leviathan in the linux-club.de forum