Rename is what I was looking for. Thank you guys.

RENAME(1) Linux Programmer's Manual RENAME(1)

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)

1 January 2000 RENAME(1)
(END)


Bryan Murdock wrote:

On 8/18/06, Eduardo Sanz Garcia <[EMAIL PROTECTED]> wrote:

All of you have sent to me your scripts (thank you) but I was looking
for a unix command.
It seems that there is not such thing as:
command *.jpg 1.jpg


There is a unix command, rename, that I was looking for when I
discovered that it seems to have been replaced with the perl script I
mentioned, at least on Ubuntu 6.06.  Either way they are both
executables in /usr/bin/, and seem to be compatible.  Sorry if I
confused you by mentioning that it's a perl script on Ubuntu, that
shouldn't matter.

Have you tried typing 'man rename' in whatever unix you are using?

Bryan

--------------------
BYU Unix Users Group http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

--------------------
BYU Unix Users Group http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to