tagline.sh
· 336 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 (new submissions start at bottom, ascending order. makes it easier to read from term)
# nl: number lines
ssh pgs.sh forms superlove_tagline | jq .[].data.tagline -r | uniq | tac | nl
| 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 (new submissions start at bottom, ascending order. makes it easier to read from term) |
| 7 | # nl: number lines |
| 8 | ssh pgs.sh forms superlove_tagline | jq .[].data.tagline -r | uniq | tac | nl |