From fcce1f29bfb475dd8c12c51d72d4d1e58e6291dd Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Thu, 17 Mar 2022 12:18:56 -0400 Subject: [PATCH] added filelist command used by pickfile --- bin/filelist | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/filelist diff --git a/bin/filelist b/bin/filelist new file mode 100755 index 0000000..4de7dbc --- /dev/null +++ b/bin/filelist @@ -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*' \ +\) "$@" -- 2.49.0