Re: Files renaming



On Wed, Jun 05, 2002 at 01:59:46PM +0400, Dmitry Semyonov wrote:
There is a possibility to prepend or to postfix some string to the
names of several files: tag files, use F5 to rename, type eg. 'my_*' to
prepend 'my_' prefix to all tagged files.

Is there any way to _strip_ (common) part of names of group of files?

 Yes, press F1 and read:

    Two examples:

    If the source mask is "*.tar.gz", the destination is
    "/bla/*.tgz" and the file to be copied is "foo.tar.gz",
    the copy will be "foo.tgz" in "/bla".

    Let's suppose you want to swap basename and extension so
    that "file.c" will become "c.file" and so on. The source
    mask for this is "*.*" and the destination is "\2.\1".


--
//Björnen, bjorn @ bjornen . nu | http://bjornen.nu | |_).._. _ _  _ _ \\
( GPG: 3F1E41C8 5229D5F6 5D8E0149 659CDF06 8320510D | |_)|(_)| | )(-| ) )
\\ Mutt+Vim+..[No list CC:s please]..+GPG+GNU/Linux |   /              //

Attachment: pgp_KNFUHW7hS.pgp
Description: PGP signature



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