added valley(1)

This commit is contained in:
khm 2013-01-27 17:36:05 -05:00
parent c1cb685a32
commit 1859bc9832

24
rc/bin/valley Executable file
View file

@ -0,0 +1,24 @@
#!/bin/awk -f
BEGIN {
phrases=", like,\
, y'know,\
, or whatever,\
, umm,\
, for sure,"
len=split (phrases, phrase, /\n/)
}
{
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
}