update example usage
This commit is contained in:
parent
4d3d657459
commit
41f340a595
1 changed files with 9 additions and 16 deletions
19
README.md
19
README.md
|
@ -70,33 +70,26 @@ specifying `--get-field` or`--get-line` multiple times with the same
|
||||||
name. Regexp patterns are case-insensitive.
|
name. Regexp patterns are case-insensitive.
|
||||||
|
|
||||||
|
|
||||||
### Examples
|
### Example usage
|
||||||
|
|
||||||
* Password entry (`~/.password-store/sites/example/login.gpg`):
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
$ gpg -d ~/.password-store/sites/example/login.gpg
|
||||||
password123
|
password123
|
||||||
---
|
---
|
||||||
username: user_name
|
username: user_name
|
||||||
email user@example.com
|
email user@example.com
|
||||||
url:example.com
|
url:example.com
|
||||||
Some note
|
Some note
|
||||||
```
|
|
||||||
|
|
||||||
* Command
|
$ pass2csv ~/.password-store - \
|
||||||
|
|
||||||
```
|
|
||||||
pass2csv ~/.password-store \
|
|
||||||
--exclude '^---$' \
|
--exclude '^---$' \
|
||||||
--get-field Username '(username|email):?' \
|
--get-field Username '(username|email):?' \
|
||||||
--get-field URL 'url:?'
|
--get-field URL 'url:?'
|
||||||
```
|
|
||||||
|
|
||||||
* Output
|
"Group(/)","Title","Password","URL","Username","Notes"
|
||||||
|
"sites/example","login","password123","example.com","user_name","email user@example.com
|
||||||
|
|
||||||
```
|
Some note"
|
||||||
Group(/),Title,Password,URL,Username,Notes
|
|
||||||
sites/example,login,password123,example.com,user_name,"email user@example.com\nSome note"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue