Help Renaming Multple Files

Uwe Doering gemini at geminix.org
Mon Mar 7 23:15:50 PST 2005


Phusion wrote:
> I need help figuring out how to rename multple files. The files are
> named like reports_abcdef_YYYYMMDD.dat, reports_hijklm_YYYYMMDD.dat,
> and reports_nopqrs_YYYYMMDD.dat. Here is an example.
> 
> Original Filename: reports_abcdef_YYYYMMDD.dat
> New Filename: abcdef_YYYYMMDD.dat
> 
> Let me know how I can do this. Thanks.

You may want to take a look at the 'mmv' package (ports/misc/mmv).

    Uwe
-- 
Uwe Doering         |  EscapeBox - Managed On-Demand UNIX Servers
gemini at geminix.org  |  http://www.escapebox.net


More information about the freebsd-questions mailing list