aboutsummaryrefslogtreecommitdiffstats
path: root/blind-rotate-90
blob: bbecc5bc71935d36a1bbb700a977e369f6a79e31 (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/')"

"$transpose" | "$flop"