X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=ae0c42073a0e090282b7fa3871f7f824fa03c643;hb=2d76e8a00509a58fc64e67080689a7f82c022d74;hp=a5cd8b41f0aadc9c932abad09726faf5442be2b2;hpb=4015bdf74ecf40c2169e7ad439fe316d1643dea9;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index a5cd8b41..ae0c4207 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -965,6 +965,22 @@ return 0 ############## + # space 'em all fixes naming for all of the files of the appropriate types in the directories specified. + function spacemall() { + local -a dirs=("${@}") +echo "dirs from params are: " "${dirs[@]}" + if [ ${#dirs[@]} -eq 0 ]; then +echo dirs had zero entries + dirs=(.) + fi +echo "dirs are: " "${dirs[@]}" + +#was using: -maxdepth 1 -mindepth 1 + find "${dirs[@]}" -follow -type f \( $(echo pdf png jpg jpeg odt ods docx m4a mp3 eml html mov pptx xlsx zip | sed -e 's/\([a-z0-9][a-z0-9]*\)/-iname \"*.\1\" -o /g') -iname "*.txt" \) -exec bash "$FEISTY_MEOW_SCRIPTS/files/spacem.sh" "{}" \; + } + + ############## + # site avenger aliases function switchto() {