tagline.sh
· 355 B · Bash
Raw
#!/usr/bin/env bash
# ssh: get form
# jq: show tagline submissions only from the JSON response
# uniq: only unique submissions
# tac: reverse line order (for numbering purposes later)
# nl: number lines
# tac: reverse numbering order (start from highest instead of `1`)
ssh pgs.sh forms superlove_tagline | jq .[].data.tagline -r | uniq | tac | nl | tac
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # ssh: get form |
| 4 | # jq: show tagline submissions only from the JSON response |
| 5 | # uniq: only unique submissions |
| 6 | # tac: reverse line order (for numbering purposes later) |
| 7 | # nl: number lines |
| 8 | # tac: reverse numbering order (start from highest instead of `1`) |
| 9 | |
| 10 | ssh pgs.sh forms superlove_tagline | jq .[].data.tagline -r | uniq | tac | nl | tac |