[extern] Re: Large files lead to pipefail

Torsten Casselt casselt at luis.uni-hannover.de
Wed Apr 24 10:22:57 UTC 2024


Hi Johannes,

Am Mittwoch, dem 24.04.2024 um 07:47 +0200 schrieb Johannes
Altmanninger:
> Personally I'd use sed. It's interesting to learn that cut do this
> 
>         pass="$($GPG -d "${GPG_OPTS[@]}" "$passfile" | sed -n
> ${selected_line}p)" || exit $?

cut is slightly faster (even faster than the original tail/head
approach), that’s why I decided to use cut for this.

Regards
Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7679 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20240424/2011936d/attachment.p7s>


More information about the Password-Store mailing list