-
Notifications
You must be signed in to change notification settings - Fork 15
/
demo.sh
executable file
·50 lines (44 loc) · 861 Bytes
/
demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
set -eu
set -o pipefail
shopt -s globstar nullglob
cd "$(dirname "$0")" || exit 1
./gay -f -l
printf '\n\n'
./gay -f -g
printf '\n\n'
./gay -f -b
printf '\n\n'
./gay -f -t
printf '\n\n'
./gay -f -a
printf '\n\n'
./gay -f -p
printf '\n\n'
./gay -f -n
printf '\n\n'
./gay -f --gq
TEXT="$(< /dev/stdin)"
./gay -l -i 1d <<< "$TEXT"
./gay -l -i 2d <<< "$TEXT"
printf '\n\n'
./gay -g -i 1d <<< "$TEXT"
./gay -g -i 2d <<< "$TEXT"
printf '\n\n'
./gay -b -i 1d <<< "$TEXT"
./gay -b -i 2d <<< "$TEXT"
printf '\n\n'
./gay -t -i 1d <<< "$TEXT"
./gay -t -i 2d <<< "$TEXT"
printf '\n\n'
./gay -a -i 1d <<< "$TEXT"
./gay -a -i 2d <<< "$TEXT"
printf '\n\n'
./gay -p -i 1d <<< "$TEXT"
./gay -p -i 2d <<< "$TEXT"
printf '\n\n'
./gay -n -i 1d <<< "$TEXT"
./gay -n -i 2d <<< "$TEXT"
printf '\n\n'
./gay --gq -i 1d <<< "$TEXT"
./gay --gq -i 2d <<< "$TEXT"