1
1
Fork
You've already forked mved
0
carefully rename multiple files and directories https://raf.org/mved
  • Perl 95.4%
  • Makefile 4.6%
2023年08月18日 21:44:50 +10:00
.reuse Add LICENSES/* and .reuse/dep5 (REUSE 3.0 compliant) 2023年03月20日 11:59:48 +11:00
LICENSES Add LICENSES/* and .reuse/dep5 (REUSE 3.0 compliant) 2023年03月20日 11:59:48 +11:00
CHANGELOG Add references to the codeberg repository 2023年03月20日 12:04:38 +11:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md 2023年03月20日 10:31:57 +11:00
COPYING Add references to the codeberg repository 2023年03月20日 12:04:38 +11:00
INSTALL Add references to the codeberg repository 2023年03月20日 12:04:38 +11:00
LICENSE Replace original June 1991 GPLv2 with February 1999 (post-LGPLv2.1) GPLv2 2021年09月14日 15:45:40 +10:00
Makefile make - Allow setting PREFIX/DESTDIR orthogonally 2023年08月18日 21:44:50 +10:00
mved Add references to the codeberg repository 2023年03月20日 12:04:38 +11:00
README.md Add references to the codeberg repository 2023年03月20日 12:04:38 +11:00
run-tests Add references to the codeberg repository 2023年03月20日 12:04:38 +11:00

README

mved - carefully rename multiple files and directories

Description

mved renames multiple files and directories in a deeply paranoid fashion. At the slightest hint that you are going to destroy your files, it will bail out and tell you why.

mved is freely available under the terms of the GNU General Public License, either version 2 of the License, or (at your option) any later version.

For more information, read the manual entry in the Documentation section.

Examples

mved =.c~ bak/=.c.bak
 mv a.c~ bak/a.c.bak
 mv b.c~ bak/b.c.bak
 mv c.c~ bak/c.c.bak
mved '*.[ch]' save-=.=
 mv a.c save-a.c
 mv a.h save-a.h
 mv b.c save-b.c
 mv b.h save-b.h
mved save-=.= =.=
 mv save-a.c a.c
 mv save-a.o a.o
 mv save-b.c b.c
 mv save-b.o b.o
mved note= note=.txt
 mv note1 note1.txt
 mv note2 note2.txt
 mv note3 note3.txt
mved '[0-9][0-9][0-9][0-9][0-9][0-9]*' 19=5==6=-ひく=3==4=-ひく=1==2==7=
 mv 191299-app.log 1999年12月19日-app.log
 mv 211299-app.log 1999年12月21日-app.log
 mv 251299-app.log 1999年12月25日-app.log
 mv 281299-app.log 1999年12月28日-app.log
mved '{abc,def}.*' =-v2.=
 mv abc.txt abc-v2.txt
 mv def.txt def-v2.txt

Requirements

mved is written in Perl and should run on any system that has perl(1). There are no dependencies on any non-standard Perl modules.

Documentation

There is a manual entry:

mved(1) - the mved(1) manpage


URL: http://raf.org/mved
GIT: https://github.com/raforg/mved
GIT: https://codeberg.org/raforg/mved
Date: 20200625
Author: raf <raf@raf.org>