/jmf

A simple CLI tool for manipulation file at once

Primary LanguageZigGNU General Public License v3.0GPL-3.0

Usage

Add prefix "new-" to all files

mf -a "new-"
file1.txt   -> new-file1.txt
file2.txt   -> new-file2.txt

Remove substring "old-" from all files

mf -r "old-"
old-file1.txt -> file1.txt
old-file2.txt -> file2.txt

Combine: remove "old-" and add "test-" in one go

mf -a "test-" -r "old-"
old-file1.txt -> test-file1.txt
old-file2.txt -> test-file2.txt

TODO

  • adding new name to all files
  • remove specific name in all files
  • option transform to lowercase
  • option change filename that have spaces to (-) or (_)
  • distribution across os