From 8e4d2d396b9876c240c3a4d7a82296a57a358706 Mon Sep 17 00:00:00 2001 From: NRK Date: Sat, 18 Sep 2021 23:53:53 +0600 Subject: use grep -iE instead of -iname --- examples/rifle_sxiv.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/rifle_sxiv.sh b/examples/rifle_sxiv.sh index 7148d92c..45a13f28 100755 --- a/examples/rifle_sxiv.sh +++ b/examples/rifle_sxiv.sh @@ -14,9 +14,8 @@ tmp="/tmp/sxiv_rifle_$$" listfiles () { - find -L "///${1%/*}" \( ! -path "///${1%/*}" -prune \) -type f \ - \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' -o -iname '*.gif' \ - -o -iname '*.webp' -o -iname '*.tiff' -o -iname '*.bmp' \) -print | + find -L "///${1%/*}" \( ! -path "///${1%/*}" -prune \) -type f | + grep -iE '\.(jpe?g|png|gif|webp|tiff|bmp)$' | sort | tee "$tmp" } -- cgit 1.4.1-2-gfad0