PATCH: add -n or -nontree option in find

Tobias Girstmair t-passwd at girst.at
Wed Apr 3 17:49:58 CEST 2019


I believe you can get rid of the tmp_file by using a subshell. 
(untested)


+         find "$PREFIX" -follow -type d -iname "*${@}*" 2>/dev/null | while read f
+         (
+         do
+           find "$f" -follow -type f -iname '*.gpg' 2>/dev/null
+         done
+         find "$PREFIX" -follow -type f -iname "*${@}*.gpg" 2>/dev/null
+         ) |
+         sort -u | sed 's/.gpg//g' | cut -c $c- && rm -f "$tmp_file"
+       fi
 }


More information about the Password-Store mailing list