From 41f340a595709435600b7e3c6e4e60104cbe18b0 Mon Sep 17 00:00:00 2001 From: Rupus Reinefjord Date: Tue, 16 Jan 2024 19:50:51 +0100 Subject: [PATCH] update example usage --- README.md | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index e78ed02..38e403b 100644 --- a/README.md +++ b/README.md @@ -70,33 +70,26 @@ specifying `--get-field` or`--get-line` multiple times with the same name. Regexp patterns are case-insensitive. -### Examples - -* Password entry (`~/.password-store/sites/example/login.gpg`): +### Example usage ``` +$ gpg -d ~/.password-store/sites/example/login.gpg password123 --- username: user_name email user@example.com url:example.com Some note -``` -* Command +$ pass2csv ~/.password-store - \ + --exclude '^---$' \ + --get-field Username '(username|email):?' \ + --get-field URL 'url:?' -``` -pass2csv ~/.password-store \ - --exclude '^---$' \ - --get-field Username '(username|email):?' \ - --get-field URL 'url:?' -``` +"Group(/)","Title","Password","URL","Username","Notes" +"sites/example","login","password123","example.com","user_name","email user@example.com -* Output - -``` -Group(/),Title,Password,URL,Username,Notes -sites/example,login,password123,example.com,user_name,"email user@example.com\nSome note" +Some note" ```