shithub: rc

Download patch

ref: 5380c7b9724db3a73bb0999c05c5492a4afcd24c
parent: 26d5bec9b3b08cce5c94de9aebfa1551030e7b38
author: qwx <qwx@sciops.net>
date: Thu Jan 9 10:47:38 EST 2020

add avgn: interspred avgn insults in text similar to valley(1)

(largely unfinished)

--- /dev/null
+++ b/avgn
@@ -1,0 +1,31 @@
+#!/bin/awk -f
+
+BEGIN {
+phrases=", goddamn it,\
+, what the hell,\
+, goddamn fuckshit,\
+, son of a fuck,\
+, Christ almighty,\
+, oh God,\
+, or whatever the fuck,\
+, fucking assballs, \
+! What the shit is this unholy fuckness?! Oh,\
+, what a great thing, huh,\
+, Jesus fucking Christ on a fucking pogo stick,\
+, you stupid fuck,\
+, fucking Christ,"
+
+len=split (phrases, phrase, /\n/)
+srand()
+}
+
+
+{ 
+  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]
+}