ref: 74a2f28c13ab24ddd1854a0739b8379bb8e090f4
parent: 62d34a466e6eb0a3e38ed4c6498ff9fdf541ea9e
author: stanley lieber <stanley.lieber@gmail.com>
date: Thu Aug 18 10:40:56 EDT 2011
bullshit: add support for arbitrary database files
--- a/rc/bin/bullshit
+++ b/rc/bin/bullshit
@@ -1,4 +1,8 @@
#!/bin/rc
+if(~ $#1 0)
+ file=/lib/bullshit
+if not
+ file=$1
awk '
function min(a, b){if(a > b)
@@ -48,4 +52,4 @@
printf "%s ", end[int(rand() * nend)]
print ""
}
-' /lib/bullshit
+' $file
--
⑨