[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Smart version of mv ?



On Mon, Aug 08, 2005 at 12:22:34PM +0200, Paolo Pantaleo wrote:
} with MSDOS mv (or move, i don't remember the name) you can do
} mv *.c *.cpp
} that is a quite smart thing, i think :)
} 
} with Unix mv... you can't. You have to use find and sed (at least so i know)
} 
} Is there a nice program that can do things like:
} TheSmartMove "*.c" "*.cpp"

The command you are looking for is /usr/bin/rename, and it is part of the
perl package. Read the man page for instructions on how to use it. The
syntax is not exactly what you are asking for, but the functionality is.

} Thnx
} PAolo
--Greg



Reply to: