xgrep 249 B

12345
  1. #!/usr/bin/env bash
  2. # Search through xcompose files for a match, show character and shortcut
  3. grep -i "$@" -- "$HOME/.XCompose" "/usr/share/X11/locale/en_US.UTF-8/Compose" | cut -d':' -f2,3 | grep -Ev "^#" | cut -d '"' -f1,2 | tr -d '"' | tr -s ' '