Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2004 12:03:23 +0100
From:      Andrew Kotsopoulos <a.kotsopoulos@tue.nl>
To:        freebsd-questions@FreeBSD.ORG
Subject:   "rename" shell command
Message-ID:  <4014F3FB.1030204@tue.nl>

next in thread | raw e-mail | index | archive | help
Dear FreeBSD

I'm looking for the "rename" shell command for the macosx version of 
bsd.  In redhat and possibly other linux distributions the command 
renames files and supports wildcards and multiple file conversions, as 
you most likely know.  To be more precise here is the man page:

-----

NAME
rename - Rename files
SYNOPSIS
rename from to file...
DESCRIPTION
rename will rename the specified files by replacing the first occurrence 
of from in their name by to.

For example, given the files foo1, ..., foo9, foo10, ..., foo278, the 
commands

rename foo foo0 foo?
rename foo foo0 foo??

will turn them into foo001, ..., foo009, foo010, ..., foo278.

And

rename .htm .html *.htm

will fix the extension of your html files.

SEE ALSO
mv(1)

----

If it exisits within the bsd distribution then where is it?
If not, can you tell me why it does not exist?
I suppose I could simply compile it from source, if I can find some source?

Many thanks

Andrew

-- 
  O O   D r    A n d r e w   K o t s o p o u l o s
   O    Dept of Electrical Engineering (Group EPE)
\___/  Technical    University    of    Eindhoven

Post box 513               phone: +31 40 247 3566
5600MB Eindhoven             fax: +31 40 243 4364
The Netherlands        secratary: +31 40 247 2310




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4014F3FB.1030204>