Re: renaming multiple files

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

 



Using the command "mmv":
mmv "prefix-*" "#1"

This would strip "prefix-" from the beginning of each file.



On Mon, Nov 22, 2004 at 12:57:40PM -0300, Fabio Zyserman wrote:
> Hi all,
> 
> I have some files in a directory, called
> prefix-file1
> prefix-file2
> etc
> 
> I want to rename them to
> file1
> file2
> etc
> 
> How can I do it with a bash command?
> 
> Many thanks in advance,
> 
> Fabio Zyserman
> -
> : send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux