nnn/plugins/hexview

12 lines
184 B
Text
Raw Normal View History

2019-03-23 07:44:34 +05:30
#!/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
2019-07-21 13:50:46 +05:30
xxd "$1" | $PAGER
2019-03-23 07:44:34 +05:30
fi