diff options
| author | filip <“filip.rabiega@gmail.com”> | 2025-11-13 18:24:26 +0100 |
|---|---|---|
| committer | filip <“filip.rabiega@gmail.com”> | 2025-11-13 18:24:26 +0100 |
| commit | afd02bfcce54e3252d356f34c25a155c855f3612 (patch) | |
| tree | 5281f0e305cfedf541bb63c2cbc7d1b46177a244 /rm_whitespaces | |
| parent | ddb3f6c1f736cde398df4cf420d67a2d7e7ee944 (diff) | |
| download | chadscripts-afd02bfcce54e3252d356f34c25a155c855f3612.tar.gz chadscripts-afd02bfcce54e3252d356f34c25a155c855f3612.tar.bz2 chadscripts-afd02bfcce54e3252d356f34c25a155c855f3612.zip | |
renamed fz to dz and rm_whitespaces to rmw
Diffstat (limited to 'rm_whitespaces')
| -rwxr-xr-x | rm_whitespaces | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/rm_whitespaces b/rm_whitespaces deleted file mode 100755 index 758c1c3..0000000 --- a/rm_whitespaces +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -if [ "$#" -gt 1 ]; then - echo "Usage: rm_whitespaces <dir>" >&2 - exit 1 -fi - -if [ "$#" -eq 0 ]; then - dir="$(pwd)" -else - dir="$1" -fi - -cd "$dir" || { - echo "Couldn't cd to directory. Exiting..." >&2 - exit 1 -} - -for file in "$dir"/*; do - newname="$(echo "$file" | sed -e 's/[ \t]/\_/g' -e 's/["`”“]*//g')" - mv "$file" "$newname" -done - -exit 0 |
