1 2 3 4 5
#!/bin/sh text="$(clipo | tesseract - stdout | sed '/^$/d')" [ $? -gt 0 ] && exit 1 choice="$(printf -- "-\n%s" "$text" | dmenu -c)" [ "$choice" ] && printf "%s" "$text" | clipp