[arch-general] renaming files

XeCycle xecycle at gmail.com
Thu Mar 1 23:03:00 EST 2012


pete <p.nikolic1 at btinternet.com> writes:

> Hi folks 
>
> Bit sort of off topic but hopefully ok 
>
> I have some 350 picture files  with names  along the lines of
> "IMG_7127 EOS-1D Mark III copy.jpg"    i would like to rename them all
> to more like "IMG_7127.jpg"  i have tried a few times tonight and cant
> get my head around it anyone got a script that can do it 

Install `moreutils' from [community], and use `vidir'.

Otherwise, if you use Emacs, then C-x C-q in dired does that in
the Emacs way.

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20120302/72ee4bb9/attachment-0001.asc>


More information about the arch-general mailing list