petits-scripts-persos/address

6 lines
156 B
Plaintext
Raw Normal View History

2022-02-17 23:09:18 +00:00
#!/bin/sh
khard email "$@" | grep -E -o "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b"
s="$@"
2022-03-11 12:43:53 +00:00
[ "$#" -gt 0 ] && notmuch address "$s" | grep -i "$s"