diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-09 23:55:59 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-09 23:55:59 -0700 |
commit | cdcdb977280d1acaae130a3937b3e85b67623b87 (patch) | |
tree | 9decd14ae051cf63093edf68dfb5109919449ad0 /.local/bin/orgext | |
parent | 2b69161bbee641bf1ae339febc74617ed6407e2e (diff) |
find change --execdir to --exec, --execdir not posix compliant?
Diffstat (limited to '.local/bin/orgext')
-rwxr-xr-x | .local/bin/orgext | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/orgext b/.local/bin/orgext index 2ece9e72..88950928 100755 --- a/.local/bin/orgext +++ b/.local/bin/orgext @@ -8,7 +8,7 @@ outdir () { - find . -type f -execdir mv -nt "$PWD" -- '{}' \+ + find . -type f -exec mv -nt "$PWD" -- '{}' \+ find . -mindepth 1 -maxdepth 1 -type d -delete } @@ -17,7 +17,7 @@ outdir () indir () { find . -maxdepth 1 -type f | awk -F. '!a[$NF]++{print $NF}' | xargs mkdir -- - find . -mindepth 1 -maxdepth 1 -type d -execdir basename -az -- '{}' \+ | xargs -0 -I _ find . -maxdepth 1 -type f -name '*._' -execdir mv -t '_' -- '{}' \+ + find . -mindepth 1 -maxdepth 1 -type d -exec basename -az -- '{}' \+ | xargs -0 -I _ find . -maxdepth 1 -type f -name '*._' -exec mv -t '_' -- '{}' \+ } case "$1" in |