free hit counter

Monday, December 05, 2011

rename command: who knew?

I was trying to rename a whole bunch of files in a dir from on prefix to another.

Fiddling with xargs, when google lead me to rename. And it takes straight perl subtitution experssions! Tada:


rename 's/Android(.*)/UInput$1/' *

0 Comments:

Post a Comment

<< Home