Can I extract arbitrary lines to stdout, rather than to the clipboard?

Chris Vittal chris at vittal.dev
Sun Jun 28 21:31:48 CEST 2020


On Sun Jun 28, 2020 at 2:54 PM EDT, yvh11a wrote:
>
> pass -c zx2c4.com -> sends hunter2 to clipboard
> pass -c2 zx2c4.com -> sends my-email at example.com to the clipboard
> pass zx2c4.com -> sends hunter2 to stdout
Shouldn't this show:
hunter2
my-email at example.com

like if you used `pass show`

Once we have text heading to stdout, we can use pipes:

pass show zx2c4.com | sed -n '2p'

Best,
Chris


More information about the Password-Store mailing list