aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/hexview
blob: 3f45583b2180fc9260357817f3c15e6d2580fb1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/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