← Home
Batch rename files bash script
2 July, 2024
num
=
0
; for
i
in *; do
mv
"$
i
" "$
(
printf
'
%04d
' $
num
).
$
{
i
#
*
.}
"
;
((num
++
))
; done