aboutsummaryrefslogtreecommitdiffstats
path: root/blind-rotate-270
blob: 77305ca71852f0691640694d2f98968099ef3fb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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/')"

"$flop" | "$transpose"