GitHub - Usbac/nmly: Mass file rename utility with useful functions and written...
source link: https://github.com/Usbac/nmly
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Bulk rename utility.
Nmly is a bulk rename utility with useful functions. Written in ANSI C.
It's extremely easy to use, includes multiple useful features like files preview, multiple filters a recursive option and much more.
And yes, it's obviously extremely fast. ;)
Functions
after [text]
Add the text at the end of the filename
before [text]
Add the text at the beginning of the filename
lower
All filename characters to lowercase
remove [text]
Remove the specified text from the filename
replace [ori] [new]
Replace a text with a new one
reverse
Reverse the filename
switch [sep]
Switch the filename order based in a separator
upper
All filename characters to uppercase
Options
-d
--directory [text]
The target directory
-e
--extension [text]
Filter files based on theirs extension
-f
--folders
Apply the changes to the folders name too
-h
--help
Get help and information
-l
--locale
Process special characters (like latin ones)
-nv
--no-verbose
No verbose mode (no files will be listed)
-p
--preview
Show the changes without applying them
-r
--recursive
Work recursively
-s
--size [size]
Filter files based on theirs size (+/-)(g/m/k)
--split
Display the changes horizontally split
-u
--unmodifiable
Show non-modifiable files
-v
--version
Show the application version
Install
Move to your Nmly folder and run the following command:
make && sudo make install
Now you should be able to access Nmly by running nmly
in your terminal.
Naming
You can specify the Nmly name when installing it with the NAME makefile variable:
sudo make install NAME=renamer
Now you will be able to access Nmly with the renamer
command.
Testing
Move to your Nmly folder and run the following command:
make test && ./nmly_test
Examples
$ nmly switch - Author - Song.mp3 > Song - Author.mp3
$ nmly remove " 2017" -d vacations -e mp4 vacations/video 2017.mp4 > vacations/video.mp4
$ nmly reverse -d folder -s +1g folder/fileBiggerThan1GB.iso > folder/BG1nahTreggiBelif.iso
$ nmly replace jpeg jpg picture.jpeg > picture.jpg
$ nmly after world -r hello.pdf > helloworld.pdf subfolder/file.txt > subfolder/fileworld.txt
$ nmly upper -r --split hello.pdf HELLO.pdf subfolder/file.txt subfolder/FILE.txt
$ nmly -u -d folder -r folder/filewithpermissions.txt
Contributing
Any contribution or support to this project in the form of a pull request or message will be highly appreciated.
You can read more about it right here. Don't be shy :)
License
Nmly is open-source software licensed under the MIT license.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK