I'm trying to create some files that has different names and with different extensions. Let say I want to create for example 3 files with following name and extension:
File001.000
File002.001
File003.002
Or with alphabetical extension:
File001.A
File002.B
File003.C
Also it would be better if I could create files with random names and extension.
Filexct.cbb
Filedht.ryt
Filefht.vbf
Best Answer
The simplest way I could find is:
This will create
To understand how this works, have a look at what each command prints:
So, all together, they expand to
Creating 5 files with random names is much easier:
To create 5 files with random 5 alphabetical character names and random extensions, you can use this:
Finally, to create 5 files with random names and no extensions, use