No description
Find a file
2022-01-26 10:06:22 -08:00
src bump version to 0.2.2 2022-01-26 10:06:22 -08:00
.gitignore add license 2021-03-30 14:32:07 -07:00
CHANGELOG.md update version to 0.2.1 2022-01-07 16:38:23 -08:00
LICENSE add regex capturing 2022-01-07 16:37:11 -08:00
README.md improve regex handling 2022-01-26 10:05:34 -08:00
rn.nimble bump version to 0.2.2 2022-01-26 10:06:22 -08:00
TODO.txt update readme 2021-04-15 09:39:36 -07:00

rn: r[e]n[ame]

features:

  • minimal
  • supports regex and glob
  • shallow (default) and recursive modes
  • hidden files safe (*nix)
  • collision/overwrite safe

usage:

usage: rn [options] this[ that]

options:
  -r, --recursive                 rename files recursively
  -R, --regex                     regex match
  -g, --glob                      glob match
  -d, --dry                       dry run

examples:
  rn "&" and
  rn -r copy
  rn -R "\s+" _
  rn --regex "(\d+)" "image-\$1"
  rn --glob --dry "*.jpeg" image

installation:

nimble install rn

notes:

  • for all modes except glob, leaving out the second argument ("that") simply removes the first argument ("this") from filenames, instead of replacing.