]> git.mdlowis.com Git - projs/tide.git/commitdiff
Added hex editing routines and a shebang to clearly mark the file as a bash script...
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 1 Feb 2017 15:45:21 +0000 (10:45 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 1 Feb 2017 15:45:21 +0000 (10:45 -0500)
editrc

diff --git a/editrc b/editrc
index 69d2dedd2418655ca48f6124c2991d7e1fd5bcc4..b99d68026fcd2124e44df9e540ccb2d0dfe35fee 100644 (file)
--- 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; }