ref: f4f3d995c4e85799c374026b335e93cb23ff19de
parent: 684a52878dce130755d64408973fc0f66e379e19
author: sl <sl@x1yg3>
date: Sat Jul 5 23:26:12 EDT 2025
add valley
--- a/INDEX
+++ b/INDEX
@@ -31,6 +31,7 @@
top - approximates the top command on unix (author unknown)
tpl - Create tangara playlists in matching directories under ../Playlists/.
trackpoint - Set preferred X11 mouse acceleration for ThinkPad trackpoint.
+valley - convert text to valleyspeak
w - print weather report from api.weather.gov
weather - print weather report from wttr.in (by Fulton Browne)
wircrc - rio irc client (by cinap_lenrek)
--- /dev/null
+++ b/valley
@@ -1,0 +1,25 @@
+#!/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
+}
+
--
⑨