From 69f981a239cecdd7d0756a31f8a323bebb9f7398 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 1 Feb 2017 10:45:21 -0500 Subject: [PATCH] Added hex editing routines and a shebang to clearly mark the file as a bash script. This is mostly for documentation purposes --- editrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editrc b/editrc index 69d2ded..b99d680 100644 --- a/editrc +++ b/editrc @@ -1,3 +1,5 @@ +#!/bin/bash + # Tag Lines #------------------------------------------------------------------------------ @@ -32,3 +34,7 @@ lnnum(){ nl -nln -ba; } # Trim trailing whitspace trim(){ sed -e 's/[\t ]\+$//'; } + +# Hex editing functions +hex(){ xxd; } +nohex(){ xxd -r; } -- 2.54.0