From: Michael D. Lowis Date: Thu, 17 Mar 2022 16:18:56 +0000 (-0400) Subject: added filelist command used by pickfile X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=fcce1f29bfb475dd8c12c51d72d4d1e58e6291dd;p=projs%2Ftide.git added filelist command used by pickfile --- 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*' \ +\) "$@"