]> git.mdlowis.com Git - projs/tide.git/commitdiff
added filelist command used by pickfile master
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 17 Mar 2022 16:18:56 +0000 (12:18 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 17 Mar 2022 16:18:56 +0000 (12:18 -0400)
bin/filelist [new file with mode: 0755]

diff --git a/bin/filelist b/bin/filelist
new file mode 100755 (executable)
index 0000000..4de7dbc
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ $# -eq 0 ]; then
+    echo "Usage: filelist DIR [FLAGS...]"
+    exit 1
+fi
+
+dir="${1:-.}"
+shift
+find "$dir" -type f \! \( \
+    -wholename '*.svn*' -o \
+    -wholename '*.git*' \
+\) "$@"