I have 4000 files, and I need to add the nrs 1 to 4000 at the beginning of all filenames.
For example:
file_a.CEL
file_c.CEL
file_g.CEL
file_x.CEL
...
other_file.CEL
Should become:
1_file_a.CEL
2_file_c.CEL
3_file_g.CEL
4_file_x.CEL
...
4000_other_file.CEL
It is important that the underscore after the number also gets added. The filenames are all totally different (there is no system to the filenames), and it also doesn't really matter in what order they are numbered. Is there an easy way to do this using bash? Many thanks in advance!