daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Dec 11th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3.  
  4.  
  5. count=0
  6. length=$(cat scripttest/content/tTestjSON.json | ./jq 'length')
  7. video=$(./jq ".[$count].video"< scripttest/content/tTestjSON.json)
  8. video2="<iframe width='560' height='315' src=$video frameborder='0' gesture='media' allow='encrypted-media' allowfullscreen></iframe>"
  9.  
  10. head=$(./jq ".[$count].head"< scripttest/content/tTestjSON.json)
  11. head2="${head#"}"
  12. head2="${head2%"}"
  13.  
  14. body=$(./jq ".[$count].body"< scripttest/content/tTestjSON.json)
  15. body2="${body#"}"
  16. body2="${body2%"}"
  17. body2="$video2$body2"
  18.  
  19. category=$(./jq ".[$count].category"< scripttest/content/tTestjSON.json)
  20. category2="${category#"}"
  21. category2="${category2%"}"
  22. php test.php "$head2" "$body2" "$category2"
  23. (( count++ ))
  24. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top