From 144682ad49ea9c95fa935abb14a86de41fb8a95e Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 23 Mar 2019 07:44:34 +0530 Subject: Add user script to view files in hex --- user-scripts/hexview | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 user-scripts/hexview (limited to 'user-scripts/hexview') diff --git a/user-scripts/hexview b/user-scripts/hexview new file mode 100755 index 0000000..5125fa3 --- /dev/null +++ b/user-scripts/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 -- cgit v1.2.3-70-g09d2