nnn/plugins/hexview

12 lines
188 B
Plaintext
Raw Normal View History

2019-03-23 02:14:34 +00:00
#!/usr/bin/env sh
# Description: View a file in hex
2020-05-06 05:29:57 +00:00
# Dependencies: xxd and $PAGER
2019-03-23 02:14:34 +00:00
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana
if ! [ -z "$1" ]; then
2019-07-21 08:20:46 +00:00
xxd "$1" | $PAGER
2019-03-23 02:14:34 +00:00
fi