Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- count=0
- length=$(cat scripttest/content/tTestjSON.json | ./jq 'length')
- video=$(./jq ".[$count].video"< scripttest/content/tTestjSON.json)
- video2="<iframe width='560' height='315' src=$video frameborder='0' gesture='media' allow='encrypted-media' allowfullscreen></iframe>"
- head=$(./jq ".[$count].head"< scripttest/content/tTestjSON.json)
- head2="${head#"}"
- head2="${head2%"}"
- body=$(./jq ".[$count].body"< scripttest/content/tTestjSON.json)
- body2="${body#"}"
- body2="${body2%"}"
- body2="$video2$body2"
- category=$(./jq ".[$count].category"< scripttest/content/tTestjSON.json)
- category2="${category#"}"
- category2="${category2%"}"
- php test.php "$head2" "$body2" "$category2"
- (( count++ ))
- done
Add Comment
Please, Sign In to add comment