summaryrefslogtreecommitdiff
path: root/libhashtable/genheader.sh
diff options
context:
space:
mode:
authorEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-09-15 02:46:47 -0500
committerEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-09-15 02:48:47 -0500
commit7f82cd9b726f69f01c243833058e438c4e22b84f (patch)
treed486bd12def255048b27fa1d357036059451ee52 /libhashtable/genheader.sh
parent9b8d802ca89027de46ee45fbc9adf978a16e7927 (diff)
downloadsegfault-7f82cd9b726f69f01c243833058e438c4e22b84f.tar.gz
segfault-7f82cd9b726f69f01c243833058e438c4e22b84f.zip
did the TODO of making builtins use a hashtable.
added two commands for dealing with them. if you want you can override builtins for security reasons? :) added a small program for doing tail -f for systems that may not have tail -f
Diffstat (limited to 'libhashtable/genheader.sh')
-rwxr-xr-xlibhashtable/genheader.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/libhashtable/genheader.sh b/libhashtable/genheader.sh
new file mode 100755
index 0000000..3995579
--- /dev/null
+++ b/libhashtable/genheader.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cat libhashtable.c | head -n 22 | tail -n 16 > hashtable.h
+cat libhashtable.c | grep '(.*) *{' | egrep -v 'if|for|while' | sed 's/ {/;/' >> hashtable.h