mirror of
https://github.com/jarun/nnn.git
synced 2024-08-19 22:12:58 +00:00
12 lines
186 B
Plaintext
12 lines
186 B
Plaintext
|
#!/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
|