My build of nnn with minor changes
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415
  1. #!/usr/bin/env sh
  2. # Description: View a file in hex
  3. # Dependencies: hx (https://github.com/krpors/hx)/xxd and $PAGER
  4. #
  5. # Shell: POSIX compliant
  6. # Author: Arun Prakash Jana
  7. if ! [ -z "$1" ]; then
  8. if which hx >/dev/null 2>&1; then
  9. hx "$1"
  10. else
  11. xxd "$1" | $PAGER
  12. fi
  13. fi