diff --git a/bin/rename_and_move.sh b/bin/rename_and_move.sh new file mode 100755 index 0000000..d1d406c --- /dev/null +++ b/bin/rename_and_move.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +print_help() { + cat < + +See rename_for_shell.sh for more details on the renaming mechanics. Does not +work if the directory also has a bad name + +EXAMPLES: + fd -x rename_and_move.sh +HELP +} + +if [[ -z "$1" || "$1" == "-h" || "$1" == "--help" ]]; then + print_help + exit 1 +else + mv -n "$@" "$(~/.configs_pointer/bin/rename_for_shell.sh "$@")" &>/dev/null +fi