aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/hexview
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/hexview')
-rwxr-xr-xplugins/hexview11
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