dotfiles/home/bin/executable_rbw-get

12 lines
196 B
Bash

#!/bin/bash
# rbw-get <name of entry> <field of entry>
# Ex: rbw-get google url
if [[ "$2" == "Password" ]]
then
rbw get "$1"
else
rbw get "$1" --full | grep "$2" | cut -d ' ' -f 2-
fi