6 lines
156 B
Bash
Executable File
6 lines
156 B
Bash
Executable File
#!/bin/sh
|
|
khard email "$@" | grep -E -o "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b"
|
|
|
|
s="$@"
|
|
[ "$#" -gt 0 ] && notmuch address "$@" | grep -i "$s"
|