diff options
Diffstat (limited to 'plugins/hexview')
-rwxr-xr-x | plugins/hexview | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/hexview b/plugins/hexview new file mode 100755 index 0000000..5125fa3 --- /dev/null +++ b/plugins/hexview @@ -0,0 +1,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 |