Rename Files with Rename

Howto: Linux Rename Multiple Files At a Shell Prompt.

> rename ‘s/([0-9]+).*\.pdf/$1.pdf/’ *.pdf -n

01ª×èÍàÃ×èͧ.pdf renamed as 01.pdf
02˹éÒ͹ØÁѵÔÇÔ·ÂÒ¹Ô¾¹¸ì.pdf renamed as 02.pdf
03º·¤Ñ´ÂèÍÀÒÉÒä·Â.pdf renamed as 03.pdf
04º·¤Ñ´ÂèÍÀÒÉÒÍѧ¡ÄÉ.pdf renamed as 04.pdf
05¡ÔµµÔ¡ÃÃÁ»ÃСÒÈ.pdf renamed as 05.pdf
06ÊÒúҭ.pdf renamed as 06.pdf
07ÊÒúҭµÒÃÒ§.pdf renamed as 07.pdf
09º··Õè1.pdf renamed as 09.pdf
10º··Õè2.pdf renamed as 10.pdf
11º··Õè3.pdf renamed as 11.pdf
12º··Õè4.pdf renamed as 12.pdf
13º··Õè5.pdf renamed as 13.pdf
14º··Õè6.pdf renamed as 14.pdf
15º··Õè7.pdf renamed as 15.pdf
16º··Õè8.pdf renamed as 16.pdf
17º··Õè9.pdf renamed as 17.pdf
18º··Õè10.pdf renamed as 18.pdf
19ºÃóҹءÃÁ.pdf renamed as 19.pdf
20ÀÒ¤¼¹Ç¡.pdf renamed as 20.pdf
21ÀÒ¤¼¹Ç¡¡.pdf renamed as 21.pdf
22ÀÒ¤¼¹Ç¡¢.pdf renamed as 22.pdf
23ÀÒ¤¼¹Ç¡¤.pdf renamed as 23.pdf
24ÀÒ¤¼¹Ç¡§.pdf renamed as 24.pdf
25»ÃÐÇѵԡÒÃÈÖ¡ÉÒ.pdf renamed as 25.pdf

Advertisements

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s