aboutsummaryrefslogtreecommitdiffstats
path: root/blind-rotate-90
diff options
context:
space:
mode:
Diffstat (limited to 'blind-rotate-90')
-rwxr-xr-xblind-rotate-9018
1 files changed, 18 insertions, 0 deletions
diff --git a/blind-rotate-90 b/blind-rotate-90
new file mode 100755
index 0000000..bbecc5b
--- /dev/null
+++ b/blind-rotate-90
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+if ! test $# = 0; then
+ if test "$1" = --; then
+ shift 1
+ fi
+ if ! test $# = 0; then
+ printf 'usage: %s\n' "$0" >&2
+ exit 1
+ fi
+fi
+
+transpose="$(printf '%s\n' "$0" | sed 's/[^/]*$/blind-transpose/')"
+flop="$( printf '%s\n' "$0" | sed 's/[^/]*$/blind-flop/')"
+
+"$transpose" | "$flop"