nnn/plugins/hexview
2020-05-06 10:59:57 +05:30

12 lines
188 B
Bash
Executable file

#!/usr/bin/env sh
# Description: View a file in hex
# Dependencies: xxd and $PAGER
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana
if ! [ -z "$1" ]; then
xxd "$1" | $PAGER
fi