5 lines
188 B
Bash
Executable file
5 lines
188 B
Bash
Executable file
#!/bin/sh -x
|
|
# Rename files according to a given extended regex sed expression
|
|
sedexpr="$1"
|
|
shift
|
|
find "$@" -exec sh -c 'mv -iv "{}" "$(echo "{}" | sed -E "'"$sedexpr"'")" 2>/dev/null' \;
|