I want to rename a file from
Chat WhatsApp dengan A3 - 21.mp4
Mine.mp4
MoviMax_MV1_V016_2.106.001_20150227_2030_fbf.mp4
bedrock_server.mp4
to
test1.mp4
test2.mp4
test3.mp4
test4.mp4
How can I do it?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityLC_COLLATE=C n=0 sh -c '
for i in ./*.mp4; do echo mv "$i" "test$((n+=1)).mp4"; done'
Remove echo if the printed actions are correct
test1.mp4
,test2.mp4
, etc.? – rowboat Dec 29 '20 at 6:53