adam.nz aboutpostsprojectscontact
# op group list | awk '!/ID/ {print $0}' > ~/tmp/groups.txt # for group in $(cat ~/tmp/groups.txt | awk '!/ID/ {print $1}' ); do grep $group ~/tmp/groups.txt | awk '{$1=""; print "## GROUP: "$0}'; op vault list --group $group | tail -n +2; echo; done > ~/tmp/1p-groups2vaults.txt
Generate a list of all 1Password groups and the vaults which they are mapped to.