nnn/user-scripts/hexview

12 lines
186 B
Plaintext
Raw Normal View History

2019-03-23 02:14:34 +00:00
#!/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