diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-16 00:27:44 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-16 00:27:44 -0700 |
commit | 1a6d048d0b2192d31707a38b83181dc2d5891d2d (patch) | |
tree | bb0434f04ecd4e3ff44531d1f94ce5f1235697cd | |
parent | af2c9aaddbcb5e79608b4718ce99f365ac5c48ba (diff) |
refactor
-rwxr-xr-x | .local/bin/mvtr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/mvtr b/.local/bin/mvtr index dcea8409..b48dcb20 100755 --- a/.local/bin/mvtr +++ b/.local/bin/mvtr @@ -4,4 +4,4 @@ # link also show perl-rename approach # https://linuxconfig.org/rename-all-files-from-uppercase-to-lowercase-characters # if only change ' ' to '_' `rename` might be sufficient, for upper to lower case might need perl-rename if want concise -find "$@" -depth -exec sh -c 'mv -nvT -- "$1" "$(echo "$1" | tr "[:upper:] " "[:lower:]_")"' sh '{}' \; +find "$@" -depth -exec sh -c 'mv -nvT -- "$1" "$(echo "$1" | tr "[:upper:] " "[:lower:]_")"' shell '{}' \; |