aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/hexview
blob: 60b342817b664cabfd99e14fb502ed0fe4f1811c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env sh

# Description: View a file in hex
# Dependencies: xxd and $PAGER
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana

if ! [ -z "$1" ]; then
    xxd "$1" | $PAGER
fi