| blind-rotate-90 - blind - suckless command-line video editing utility | |
| git clone git://git.suckless.org/blind | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| blind-rotate-90 (384B) | |
| --- | |
| 1 #!/bin/sh | |
| 2 | |
| 3 set -e | |
| 4 | |
| 5 if ! test $# = 0; then | |
| 6 if test "$1" = --; then | |
| 7 shift 1 | |
| 8 fi | |
| 9 if ! test $# = 0; then | |
| 10 printf 'usage: %s\n' "$0" >&2 | |
| 11 exit 1 | |
| 12 fi | |
| 13 fi | |
| 14 | |
| 15 transpose="$(printf '%s\n' "$0" | tr '/\n' '\n/' | sed '$s/^.*$/blind-tr… | |
| 16 flop="$( printf '%s\n' "$0" | tr '/\n' '\n/' | sed '$s/^.*$/blind-fl… | |
| 17 | |
| 18 "$transpose" | "$flop" |