nnn/plugins/hexview
Arun Prakash Jana 847aa0e2ee
Fix hex viewer
2019-07-21 13:50:46 +05:30

12 lines
184 B
Bash
Executable file

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