aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/hexview
blob: 5125fa30c26d01ace6d93063b80ef80d0cb6eb18 (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