In a directory I have large number of randomly named '.wav'
files. For example
090913yui.wav
jiyafa123.wav
.
.
.
awe-6rt.wav
I want to change the file names to
file1.wav
file2.wav
.
.
and so on
Can anyone help me with how to do the same? I have only terminal access to the server. So need to do it through some command only.
c=1; for f in *.wav; do mv -- "$f" "file$c.wav"; ((c++)); done
– Aeronautix Sep 26 '23 at 10:37mv -n
ormv -i
)... does the order matter at all? – frostschutz Sep 26 '23 at 10:39