Answer the question
In order to leave comments, you need to log in
Why doesn't prename work?
I have the following files
total 10592
drwxrwxr-x 2 serii serii 4096 Jan 27 22:35 ./
drwxrwxr-x 3 serii serii 4096 Jan 27 22:27 ../
-rw-rw-r-- 1 serii serii 1167574 Jan 27 22:33 1_Desktop Wallpapers HD Part (120).jpg
-rw-rw-r-- 1 serii serii 1664576 Jan 27 22:33 2_Desktop Wallpapers HD Part (120).jpg
-rw-rw-r-- 1 serii serii 1099326 Jan 27 22:33 3_Desktop Wallpapers HD Part (120).jpg
-rw-rw-r-- 1 serii serii 1810369 Jan 27 22:33 4_Desktop Wallpapers HD Part (120).jpg
-rw-rw-r-- 1 serii serii 1503772 Jan 27 22:33 5_Desktop Wallpapers HD Part (120).jpg
-rw-rw-r-- 1 serii serii 879733 Jan 27 22:33 6_Desktop Wallpapers HD Part (120).jpg
-rw-rw-r-- 1 serii serii 838817 Jan 27 22:33 7_Desktop Wallpapers HD Part (120).jpg
-rw-rw-r-- 1 serii serii 892155 Jan 27 22:33 8_Desktop Wallpapers HD Part (120).jpg
-rw-rw-r-- 1 serii serii 963443 Jan 27 22:33 9_Desktop Wallpapers HD Part (120).jpg
prename -n 's/_Desktop\ Wallpapers\ \ HD\ Part\ (120)//'
Answer the question
In order to leave comments, you need to log in
I hurried a little, you need to put the g flag, otherwise it only applies to the first space.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question