aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.markdown4
-rwxr-xr-xbin/slow4
-rwxr-xr-xbin/supp4
-rw-r--r--man/man1/slow.1df20
-rw-r--r--man/man1/supp.1df20
5 files changed, 51 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 5b833ad8..3e566177 100644
--- a/README.markdown
+++ b/README.markdown
@@ -382,9 +382,11 @@ Installed by the `install-bin` target:
arguments.
* `stws(1df)` strips trailing spaces from the ends of lines of the files
in its arguments.
-* Five stream formatting scripts:
+* Seven stream formatting scripts:
* `sd2u(1df)` converts DOS line endings in streams to UNIX ones.
* `su2d(1df)` converts UNIX line endings in streams to DOS ones.
+ * `slow(1df)` converts uppercase to lowercase.
+ * `supp(1df)` converts lowercase to uppercase.
* `tl(1df)` tags input lines with a prefix or suffix, basically a
`sed(1)` shortcut.
* `tlcs(1df)` executes a command and uses `tl(1df)` to tag stdout and
diff --git a/bin/slow b/bin/slow
new file mode 100755
index 00000000..a7bdae76
--- /dev/null
+++ b/bin/slow
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Convert uppercase letters in a stream to lowercase
+cat "${@:--}" |
+tr '[:upper:]' '[:lower:]'
diff --git a/bin/supp b/bin/supp
new file mode 100755
index 00000000..1ba6c850
--- /dev/null
+++ b/bin/supp
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Convert lowercase letters in a stream to uppercase
+cat "${@:--}" |
+tr '[:lower:]' '[:upper:]'
diff --git a/man/man1/slow.1df b/man/man1/slow.1df
new file mode 100644
index 00000000..da7fb5d3
--- /dev/null
+++ b/man/man1/slow.1df
@@ -0,0 +1,20 @@
+.TH SLOW 1df "September 2016" "Manual page for slow"
+.SH NAME
+.B slow
+\- change uppercase letters in a stream to lowercase
+.SH USAGE
+.B slow
+FILE1 [FILE2 ...]
+.br
+.B slow
+< FILE
+.br
+program |
+.B slow
+.SH DESCRIPTION
+Applies tr(1) to change instances of characters from the current locale's
+uppercase letter set in the input into their lowercase equivalents.
+.SH SEE ALSO
+supp(1df)
+.SH AUTHOR
+Tom Ryder <tom@sanctum.geek.nz>
diff --git a/man/man1/supp.1df b/man/man1/supp.1df
new file mode 100644
index 00000000..f4342ac2
--- /dev/null
+++ b/man/man1/supp.1df
@@ -0,0 +1,20 @@
+.TH SUPP 1df "September 2016" "Manual page for supp"
+.SH NAME
+.B supp
+\- change lowercase letters in a stream to uppercase
+.SH USAGE
+.B supp
+FILE1 [FILE2 ...]
+.br
+.B supp
+< FILE
+.br
+program |
+.B supp
+.SH DESCRIPTION
+Applies tr(1) to change instances of characters from the current locale's
+lowercase letter set in the input into their uppercase equivalents.
+.SH SEE ALSO
+slow(1df)
+.SH AUTHOR
+Tom Ryder <tom@sanctum.geek.nz>