GitPedia
shenwei356

shenwei356/brename

A practical cross-platform command-line tool for safely batch renaming files/directories via regular expression

24 Releases
Latest: 2y ago
brename v2.14.0v2.14.0Latest
shenwei356shenwei356·2y ago·January 12, 2024
GitHub

📋 Changes

  • v2.14.0
  • setting default value of `-v/--verbose` as 2, which makes the output more concise. [#31](https://github.com/shenwei356/brename/issues/31)
  • ![](https://github.com/shenwei356/brename/blob/7bb6ededcda42cbb38811e0b24533f8ad20383d5/screenshot/success.png?raw=true)
  • output format changed.
  • new flag `-E/--ignore-err` to skip directory reading errs.
brename v2.13.0v2.13.0
shenwei356shenwei356·3y ago·April 13, 2023
GitHub

📋 Changes

  • v2.13.0
  • new flag `-w/--case-insensitive-path`, for correctly checking file overwrites in file systems like NTFS (most on Windows). It's automatically switched on Windows. [#28](https://github.com/shenwei356/brename/issues/28).
  • new flag `-W/--case-sensitive-path`, for disabling `-w/--case-insensitive-path` on Windows where the `-w` is switched on by default.
  • show more main options in log.
  • reports an error when the new path ends with spaces or periods. [#28](https://github.com/shenwei356/brename/issues/28)
brename v2.12.0v2.12.0
shenwei356shenwei356·3y ago·November 25, 2022
GitHub

📋 changelog

  • v2.12.0
  • new flag `-S/--skip-filters`, its default value `^\.` is for skipping paths starting with `.`.
  • new flag `-x, --disable-undo`: do not create .brename_detail.txt file for undo. [#8](https://github.com/shenwei356/brename/issues/8)
  • new flag `--clear`: remove all .brename_detail.txt files, you may need to add `-R/--recursive` to recursively clear all files in the given path.
brename v2.11.1v2.11.1
shenwei356shenwei356·4y ago·August 14, 2021
GitHub

📋 Changelog

  • v2.11.1
  • fix bug of forgetting renaming the given root directories. [#21](https://github.com/shenwei356/brename/issues/21)
brename v2.11.0v2.11.0
shenwei356shenwei356·6y ago·March 26, 2020
GitHub

📦 Changs

  • v2.11.0
  • new flag `-N/--nature-sort` for listing path in nature sort.
brename v2.10.1v2.10.1
shenwei356shenwei356·6y ago·February 14, 2020
GitHub

📋 Changes:

  • new flag `--quiet` for hiding information and warnings.
brename v2.10.0v2.10.0
shenwei356shenwei356·6y ago·August 11, 2019
GitHub

📋 Changes

  • print main options, including `ignore case`, `search pattern`, `include filters`, `exclude filters`, and `search paths`.
  • show warning inappropriate value of `-f/--include-filters` and `-F/--exclude-filters`.
  • fix bug of forgotten filter given files using `-f` and `-F`.
brename v2.9.0v2.9.0
shenwei356shenwei356·6y ago·August 6, 2019
GitHub

📋 Changes

  • add flag `-s/--list-sep` to set separator for list of found paths.
brename v2.8.1v2.8.1
shenwei356shenwei356·7y ago·March 24, 2019
GitHub

📋 Changes

  • matching directories when using flag `--only-dir` or `-D/--including-dir`.
brename v2.8.0v2.8.0
shenwei356shenwei356·7y ago·March 21, 2019
GitHub

📋 Changes

  • handle files and then dirs in a directory.
  • ignore files matched with pattern but not found in kv files when using `{kv}`.
  • add flag `--max-depth` to limit search depth.
  • add falg `--only-dir` to only handle directories.
v2.7.0
shenwei356shenwei356·7y ago·June 24, 2018
GitHub

📋 Changelog

  • add flag `-u/--undo` and `-U/--force-undo` to undo the LAST successful operation
brename v2.6.0v2.6.0
shenwei356shenwei356·8y ago·April 10, 2018
GitHub

📋 Changelog

  • better conflict detection
  • add flag `-o/--overwrite-mode` to choose 0) reporting error, 1) overwriting existed files or 2) skipping renaming.
  • Example
  • $ ls *.tar.gz
  • brename_darwin_386.tar.gz brename_linux_386.tar.gz brename_windows_386.exe.tar.gz
  • brename_darwin_amd64.tar.gz brename_linux_amd64.tar.gz brename_windows_amd64.exe.tar.gz
  • 1. default mode: reporting error
  • $ brename -p 386 -r amd64 -d
  • + 29 more
brename v2.5.2v2.5.2
shenwei356shenwei356·8y ago·March 19, 2018
GitHub

📋 Changelog

  • add flag `--nr-width` to fill leading 0s for `{nr}`. e.g.,
  • $ brename -f '.jpeg' -e -p '(.+)' -r 'pic-{nr}' --nr-width 3 -d
  • [INFO] checking: [ ok ] 'a.jpeg' -> 'pic-001.jpeg'
  • [INFO] checking: [ ok ] 'b.jpeg' -> 'pic-002.jpeg'
  • [INFO] 2 path(s) to be renamed
brename v2.5.1v2.5.1
shenwei356shenwei356·8y ago·January 18, 2018
GitHub

📋 Changelog

  • add flag `-a/--list-abs` to list absolute path, using along with flag `-l/--list`
brename v2.5.0v2.5.0
shenwei356shenwei356·8y ago·January 16, 2018
GitHub

📋 Changelog

  • skipping directories without read permission
  • add flag `-l` for only listing paths that match pattern.
brename v2.4.0v2.4.0
shenwei356shenwei356·8y ago·December 17, 2017
GitHub

📋 Changelog

  • supporting automatically mkdir. #5
  • $ brename -f .txt -p '-' -r '/'
  • [INFO] checking: [ ok ] 'a-b-c.txt' -> 'a/b/c.txt'
  • [INFO] 1 path(s) to be renamed
  • [INFO] renamed: 'a-b-c.txt' -> 'a/b/c.txt'
  • [INFO] 1 path(s) renamed
  • $ tree a
  • a
  • + 2 more
brename v2.3.0v2.3.0
shenwei356shenwei356·8y ago·August 6, 2017
GitHub

📋 Changes

  • add option `-e/--ignore-ext` for ignore file extension ( #4 ). e.g.
  • build static binaries
brename v2.2.0v2.2.0
shenwei356shenwei356·9y ago·May 5, 2017
GitHub

📋 Changes

  • Add supporting replace with ascending integer (`{nr}` in value of flag `-r/--replacement`)
  • Add supporting renaming submatch with corresponding value via key-value file (`-k/--kv-file`) (`{kv}` in value of flag `-r/--replacement`)
brename v2.1.3v2.1.3
shenwei356shenwei356·9y ago·April 27, 2017
GitHub

📋 Changes

  • fix log error, and bug of wrongly including dir
brename v2.1.2v2.1.2
shenwei356shenwei356·9y ago·April 26, 2017
GitHub

📋 Changes

  • fix windows color via https://github.com/mattn/go-colorable #1
brename v2.1.1v2.1.1
shenwei356shenwei356·9y ago·April 25, 2017
GitHub

📋 Changes

  • changing output format
brename v2.1v2.1
shenwei356shenwei356·9y ago·April 24, 2017
GitHub

📋 Changes

  • add include and exclude file filters
brename v2.0v2.0
shenwei356shenwei356·9y ago·April 23, 2017
GitHub

A safer rewritten version.

v1.0
shenwei356shenwei356·11y ago·March 31, 2015
GitHub

v1.0