diff options
Diffstat (limited to 'shell')
| -rwxr-xr-x | shell/ftag-add-dir-rec.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/shell/ftag-add-dir-rec.sh b/shell/ftag-add-dir-rec.sh deleted file mode 100755 index c5a1f6b..0000000 --- a/shell/ftag-add-dir-rec.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -if [ $# -eq 0 ] -then - echo "Usage: $0 DIR..." -fi - -tmp_file_0="$(mktemp)" -> "$tmp_file_0" -for dir in "$@" -do - find "$dir" -type f -exec sh -c "printf '%s\t%s\n' \"$(basename {})\" \"{}\" >> \"$tmp_file_0\"" ';' -done - -# cut -f1 < "$tmp_file_0" - -for file in $(cut -f1 < "$tmp_file_0" | uniq -u) -do - echo "$file" -done - -# uniq -u < "$tmp_file_0" | xargs -d '\\n' ftag file add -rm "$tmp_file_0" |
