25 lines
322 B
Awk
Executable file
25 lines
322 B
Awk
Executable file
#!/bin/awk -f
|
|
|
|
BEGIN {
|
|
srand
|
|
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 = 1+int(rand * 1000)%len;
|
|
printf "%s", phrase[ind]
|
|
}
|
|
print parts[i]
|
|
# print $0
|
|
}
|
|
|