summaryrefslogtreecommitdiff
path: root/.local/bin/aqry
blob: 38c70f36cfe00ab2bf0633101771a358a7f028a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/local/bin/andy

set ADDR_FILE $(XDG_CONFIG_HOME:$HOME/.config)/aerc/addresses

awk -v qry=$args[1] '
	BEGIN {
		FS = "\t"
	}

	$1 ~ qry {
		printf "%s\t%s\n", $2, $1
	}
' $ADDR_FILE