bullshit: add support for arbitrary database files

This commit is contained in:
stanley lieber 2011-08-18 14:40:56 -05:00
parent 62d34a466e
commit 74a2f28c13

View file

@ -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 @@ END {
printf "%s ", end[int(rand() * nend)]
print ""
}
' /lib/bullshit
' $file