dgrep (98B)
1 #!/bin/sh 2 3 regex=$(printf '' | dmenu -i -p "Regex") 4 grep "$regex" < /dev/stdin | dmenu -i | xclip