PATCH: add -n or -nontree option in find

Saeed Rasooli saeed.gnu at gmail.com
Wed Apr 3 22:23:13 CEST 2019


I didn't know about pass ls
But if you have too many files, won't you have the same problem with pass
show without argument?
With either one, you should pass a directory (either in list mode or tree
mode)

On Wed, Apr 3, 2019, 8:20 PM Tobias Girstmair <t-passwd at girst.at wrote:

> 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
>  }
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20190404/909c59e1/attachment.html>


More information about the Password-Store mailing list