[PLUG] File renaming scripts?
Shahms King
shahms at shahms.com
Mon Nov 25 19:30:43 UTC 2002
On Sun, 2002-11-24 at 15:55, Jeff wrote:
> I need to rename several files, by replacing spaces with underscores.
> Can someone point me in the right direction for a script that can do this?
>
> Jeff
>
/usr/bin/rename is in newer versions of util-linux, if it exists you can
simply run:
$ rename " " _ *\ *
to replace the spaces with underscores in all of the filenames that
contain spaces.
--
Shahms King <shahms at shahms.com>
More information about the PLUG
mailing list