blind-rotate-180 - blind - suckless command-line video editing utility
(HTM) git clone git://git.suckless.org/blind
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
blind-rotate-180 (359B)
---
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 flip="$(printf '%s\n' "$0" | tr '/\n' '\n/' | sed '$s/^.*$/blind-flip\//' | tr '/\n' '\n/')"
16 flop="$(printf '%s\n' "$0" | tr '/\n' '\n/' | sed '$s/^.*$/blind-flop\//' | tr '/\n' '\n/')"
17
18 "$flip" | "$flop"