Issue
I've one shell script where i mentioned as
#!/bin/sh
.........
curl -X POST -d text={varX} $WEB_LINK
.............
So I want to extract text of WEB_LINK and add into another file like xyz.txt. Could you please help me to do it.
Solution
Try following:
#!/bin/sh
cmd="curl -X POST -d text={varX} $WEB_LINK > xyz.txt"
bash -c "$cmd"
Answered By - hacker315 Answer Checked By - Mary Flores (WPSolving Volunteer)