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
📋 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)
- 
- output format changed.
- new flag `-E/--ignore-err` to skip directory reading errs.
brename v2.13.0v2.13.0
📋 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
📋 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
📋 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
📦 Changs
- v2.11.0
- new flag `-N/--nature-sort` for listing path in nature sort.
brename v2.10.1v2.10.1
📋 Changes:
- new flag `--quiet` for hiding information and warnings.
brename v2.10.0v2.10.0
📋 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
📋 Changes
- add flag `-s/--list-sep` to set separator for list of found paths.
brename v2.8.1v2.8.1
📋 Changes
- matching directories when using flag `--only-dir` or `-D/--including-dir`.
brename v2.8.0v2.8.0
📋 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
📋 Changelog
- add flag `-u/--undo` and `-U/--force-undo` to undo the LAST successful operation
brename v2.6.0v2.6.0
📋 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
📋 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
📋 Changelog
- add flag `-a/--list-abs` to list absolute path, using along with flag `-l/--list`
brename v2.5.0v2.5.0
📋 Changelog
- skipping directories without read permission
- add flag `-l` for only listing paths that match pattern.
brename v2.4.0v2.4.0
📋 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
📋 Changes
- add option `-e/--ignore-ext` for ignore file extension ( #4 ). e.g.
- build static binaries
brename v2.2.0v2.2.0
📋 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
📋 Changes
- fix log error, and bug of wrongly including dir
brename v2.1.2v2.1.2
📋 Changes
- fix windows color via https://github.com/mattn/go-colorable #1
brename v2.1.1v2.1.1
📋 Changes
- changing output format
brename v2.1v2.1
📋 Changes
- add include and exclude file filters
brename v2.0v2.0
A safer rewritten version.
v1.0
v1.0
