added valley(1)
This commit is contained in:
parent
c1cb685a32
commit
1859bc9832
1 changed files with 24 additions and 0 deletions
24
rc/bin/valley
Executable file
24
rc/bin/valley
Executable 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
|
||||
}
|
||||
|
Loading…
Reference in a new issue