Guest User

Untitled

a guest
Dec 11th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment