From ff52b3f585cbd664ae3cfd269002e6974697593b Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Tue, 23 Dec 2025 13:12:18 +0100 Subject: Rewrite add-dir-rec script with OCaml --- shell/ftag-add-dir-rec.sh | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 shell/ftag-add-dir-rec.sh (limited to 'shell') 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" -- cgit v1.2.3