plan9fox/rc/bin/valley
2013-01-27 17:46:31 -05:00

25 lines
318 B
Awk
Executable file

#!/bin/awk -f
BEGIN {
phrases=", like,\
, y'know,\
, or whatever,\
, umm,\
, for sure,"
len=split (phrases, phrase, /\n/)
len=len+1
}
{
split ( $0, parts, /,/)
for (i=1; i<length(parts); i++) {
printf "%s", parts[i]
ind = int(rand * len)
printf "%s", phrase[ind]
}
print parts[i]
# print $0
}