kat revised this gist 1 day ago. Go to revision
1 file changed, 1 insertion, 1 deletion
tagline.sh
| @@ -3,6 +3,6 @@ | |||
| 3 | 3 | # ssh: get form | |
| 4 | 4 | # jq: show tagline submissions only from the JSON response | |
| 5 | 5 | # uniq: only unique submissions | |
| 6 | - | # tac: reverse line order | |
| 6 | + | # tac: reverse line order (new submissions start at bottom, ascending order. makes it easier to read from term) | |
| 7 | 7 | # nl: number lines | |
| 8 | 8 | ssh pgs.sh forms superlove_tagline | jq .[].data.tagline -r | uniq | tac | nl | |
kat revised this gist 1 day ago. Go to revision
1 file changed, 2 insertions, 4 deletions
tagline.sh
| @@ -3,8 +3,6 @@ | |||
| 3 | 3 | # ssh: get form | |
| 4 | 4 | # jq: show tagline submissions only from the JSON response | |
| 5 | 5 | # uniq: only unique submissions | |
| 6 | - | # tac: reverse line order (for numbering purposes later) | |
| 6 | + | # tac: reverse line order | |
| 7 | 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 | |
| 8 | + | ssh pgs.sh forms superlove_tagline | jq .[].data.tagline -r | uniq | tac | nl | |
kat revised this gist 1 day ago. Go to revision
1 file changed, 10 insertions
tagline.sh(file created)
| @@ -0,0 +1,10 @@ | |||
| 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 | |