Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. #!/bin/bash
  2. while read p; do
  3.    for x in 1 10 100 1000 10000
  4.      do
  5.      name=$p$x
  6.      url="https://d3aqoihi2n8ty8.cloudfront.net/actions/$p/dark/animated/$x/1.gif"
  7.      #psql emotes -c "insert into cheers_test (name, url) values ('$name', '$url')"
  8.      echo $url
  9.      echo $name
  10.    done
  11. done <test.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement