How to print variable value in next line using echo commandHow to use “quickly run” and pass command-line arguments?Problem in unmounting a disk image with a script… but not manually!Mysterious behavior of echo commandecho #? is not printing any kind of valueEscape command in echoecho command variationsecho command echo the blank output instead of Variable value in Ubuntu 18.04
Mac no longer boots
Today I am 20 but next year I will turn 22
How to prove (A v B), (A → C), (B → D) therefore (C v D)
Did Joe Biden "stop the prosecution" of his son in Ukraine? And did he brag about stopping the prosecution?
Could Boris Johnson face criminal charges for illegally proroguing Parliament?
How to explain that the sums of numerators over sums of denominators isn't the same as the mean of ratios?
Can an animal produce milk all the time?
Would we have more than 8 minutes of light, if the sun "went out"?
Determine the Winner of a Game of Australian Football
In 1700s, why was 'books that never read' grammatical?
Has a hard SciFi story addressed launching from Venus and its high-density atmosphere, especially after 1967?
Could the Queen overturn the UK Supreme Court ruling regarding prorogation of Parliament?
Is negative resistance possible?
Tikz diagonal filling pattern
How to print variable value in next line using echo command
Bash-script as linux-service won't run, but executed from terminal works perfectly
Is there any problem with students seeing faculty naked in university gym?
Can/should you swim in zero G?
Conveying the idea of "down the road" (i.e. in the future)
What benefits are there to blocking most search engines?
How to get a smooth, uniform ParametricPlot of a 2D Region?
Was there an autocomplete utility in MS-DOS?
Can I voluntarily exit from the US after a 20 year overstay, or could I be detained at the airport?
Does the DOJ's declining to investigate the Trump-Zelensky call ruin the basis for impeachment?
How to print variable value in next line using echo command
How to use “quickly run” and pass command-line arguments?Problem in unmounting a disk image with a script… but not manually!Mysterious behavior of echo commandecho #? is not printing any kind of valueEscape command in echoecho command variationsecho command echo the blank output instead of Variable value in Ubuntu 18.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I'm getting a curl command output as below
curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all | jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at'
5 test 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 test1 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 test2 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 test3 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 test4 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
and I'm storing it in a variable and trying to pass echo the variable
to pass the value to another command to parse the output. But when I'm trying to echo the variable it is printing all the lines as a single line.
prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all | jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
echo $prlist
5 test 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 test1 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 test2 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 test3 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z1 test4 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
How to avoid this printing in different line? Please help.
command-line bash printing echo
add a comment
|
I'm getting a curl command output as below
curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all | jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at'
5 test 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 test1 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 test2 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 test3 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 test4 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
and I'm storing it in a variable and trying to pass echo the variable
to pass the value to another command to parse the output. But when I'm trying to echo the variable it is printing all the lines as a single line.
prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all | jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
echo $prlist
5 test 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 test1 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 test2 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 test3 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z1 test4 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
How to avoid this printing in different line? Please help.
command-line bash printing echo
1
Please edit your question and show us the exact commands you are using. We need to see thecurlcommand and theechocommand. You're probably simply not quoting correctly, but you almost certainly don't need to echo at all. If you give us the full commands, we can give you a better solution.
– terdon♦
10 hours ago
@terdon I have updated the question with the curl command I'm using.
– harsha
10 hours ago
Thank you, but as I said before, we need all commands, including theechoone. In fact, especially theecho. How are you saving thecurloutput in a variable? How are you then printing that variable? And what parsing are you trying to do?
– terdon♦
10 hours ago
@dessert I have updated it
– harsha
10 hours ago
add a comment
|
I'm getting a curl command output as below
curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all | jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at'
5 test 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 test1 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 test2 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 test3 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 test4 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
and I'm storing it in a variable and trying to pass echo the variable
to pass the value to another command to parse the output. But when I'm trying to echo the variable it is printing all the lines as a single line.
prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all | jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
echo $prlist
5 test 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 test1 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 test2 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 test3 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z1 test4 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
How to avoid this printing in different line? Please help.
command-line bash printing echo
I'm getting a curl command output as below
curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all | jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at'
5 test 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 test1 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 test2 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 test3 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 test4 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
and I'm storing it in a variable and trying to pass echo the variable
to pass the value to another command to parse the output. But when I'm trying to echo the variable it is printing all the lines as a single line.
prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all | jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
echo $prlist
5 test 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 test1 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 test2 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 test3 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z1 test4 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
How to avoid this printing in different line? Please help.
command-line bash printing echo
command-line bash printing echo
edited 10 hours ago
harsha
asked 10 hours ago
harshaharsha
9812 bronze badges
9812 bronze badges
1
Please edit your question and show us the exact commands you are using. We need to see thecurlcommand and theechocommand. You're probably simply not quoting correctly, but you almost certainly don't need to echo at all. If you give us the full commands, we can give you a better solution.
– terdon♦
10 hours ago
@terdon I have updated the question with the curl command I'm using.
– harsha
10 hours ago
Thank you, but as I said before, we need all commands, including theechoone. In fact, especially theecho. How are you saving thecurloutput in a variable? How are you then printing that variable? And what parsing are you trying to do?
– terdon♦
10 hours ago
@dessert I have updated it
– harsha
10 hours ago
add a comment
|
1
Please edit your question and show us the exact commands you are using. We need to see thecurlcommand and theechocommand. You're probably simply not quoting correctly, but you almost certainly don't need to echo at all. If you give us the full commands, we can give you a better solution.
– terdon♦
10 hours ago
@terdon I have updated the question with the curl command I'm using.
– harsha
10 hours ago
Thank you, but as I said before, we need all commands, including theechoone. In fact, especially theecho. How are you saving thecurloutput in a variable? How are you then printing that variable? And what parsing are you trying to do?
– terdon♦
10 hours ago
@dessert I have updated it
– harsha
10 hours ago
1
1
Please edit your question and show us the exact commands you are using. We need to see the
curl command and the echo command. You're probably simply not quoting correctly, but you almost certainly don't need to echo at all. If you give us the full commands, we can give you a better solution.– terdon♦
10 hours ago
Please edit your question and show us the exact commands you are using. We need to see the
curl command and the echo command. You're probably simply not quoting correctly, but you almost certainly don't need to echo at all. If you give us the full commands, we can give you a better solution.– terdon♦
10 hours ago
@terdon I have updated the question with the curl command I'm using.
– harsha
10 hours ago
@terdon I have updated the question with the curl command I'm using.
– harsha
10 hours ago
Thank you, but as I said before, we need all commands, including the
echo one. In fact, especially the echo. How are you saving the curl output in a variable? How are you then printing that variable? And what parsing are you trying to do?– terdon♦
10 hours ago
Thank you, but as I said before, we need all commands, including the
echo one. In fact, especially the echo. How are you saving the curl output in a variable? How are you then printing that variable? And what parsing are you trying to do?– terdon♦
10 hours ago
@dessert I have updated it
– harsha
10 hours ago
@dessert I have updated it
– harsha
10 hours ago
add a comment
|
1 Answer
1
active
oldest
votes
What you describe is the standard behavior of echoing an unquoted variable:
$ prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
$ echo $prlist
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z 1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
That's because $prlist is not quoted. Compare with what happens if you quote it:
$ echo "$prlist"
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
But why use a variable at all? You can just parse the output of curl directly:
curl ... | jq ... | someOtherCommand
Like this:
curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+"
"+.user.login+" "+.created_at+" "+.merged_at'curl
-s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
someOtherCommand
Thanks @terdon, adding quotes worked.
– harsha
10 hours ago
I'm storing it in a variable because I need to pass same output as input to multiple api's down the script. @terdon
– harsha
6 hours ago
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177279%2fhow-to-print-variable-value-in-next-line-using-echo-command%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
What you describe is the standard behavior of echoing an unquoted variable:
$ prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
$ echo $prlist
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z 1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
That's because $prlist is not quoted. Compare with what happens if you quote it:
$ echo "$prlist"
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
But why use a variable at all? You can just parse the output of curl directly:
curl ... | jq ... | someOtherCommand
Like this:
curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+"
"+.user.login+" "+.created_at+" "+.merged_at'curl
-s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
someOtherCommand
Thanks @terdon, adding quotes worked.
– harsha
10 hours ago
I'm storing it in a variable because I need to pass same output as input to multiple api's down the script. @terdon
– harsha
6 hours ago
add a comment
|
What you describe is the standard behavior of echoing an unquoted variable:
$ prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
$ echo $prlist
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z 1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
That's because $prlist is not quoted. Compare with what happens if you quote it:
$ echo "$prlist"
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
But why use a variable at all? You can just parse the output of curl directly:
curl ... | jq ... | someOtherCommand
Like this:
curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+"
"+.user.login+" "+.created_at+" "+.merged_at'curl
-s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
someOtherCommand
Thanks @terdon, adding quotes worked.
– harsha
10 hours ago
I'm storing it in a variable because I need to pass same output as input to multiple api's down the script. @terdon
– harsha
6 hours ago
add a comment
|
What you describe is the standard behavior of echoing an unquoted variable:
$ prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
$ echo $prlist
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z 1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
That's because $prlist is not quoted. Compare with what happens if you quote it:
$ echo "$prlist"
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
But why use a variable at all? You can just parse the output of curl directly:
curl ... | jq ... | someOtherCommand
Like this:
curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+"
"+.user.login+" "+.created_at+" "+.merged_at'curl
-s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
someOtherCommand
What you describe is the standard behavior of echoing an unquoted variable:
$ prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
$ echo $prlist
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z 1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
That's because $prlist is not quoted. Compare with what happens if you quote it:
$ echo "$prlist"
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z
But why use a variable at all? You can just parse the output of curl directly:
curl ... | jq ... | someOtherCommand
Like this:
curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
jq -r '.[]|(.number|tostring)+"
"+.user.login+" "+.created_at+" "+.merged_at'curl
-s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls?state=all |
someOtherCommand
edited 10 hours ago
answered 10 hours ago
terdon♦terdon
74.5k14 gold badges151 silver badges235 bronze badges
74.5k14 gold badges151 silver badges235 bronze badges
Thanks @terdon, adding quotes worked.
– harsha
10 hours ago
I'm storing it in a variable because I need to pass same output as input to multiple api's down the script. @terdon
– harsha
6 hours ago
add a comment
|
Thanks @terdon, adding quotes worked.
– harsha
10 hours ago
I'm storing it in a variable because I need to pass same output as input to multiple api's down the script. @terdon
– harsha
6 hours ago
Thanks @terdon, adding quotes worked.
– harsha
10 hours ago
Thanks @terdon, adding quotes worked.
– harsha
10 hours ago
I'm storing it in a variable because I need to pass same output as input to multiple api's down the script. @terdon
– harsha
6 hours ago
I'm storing it in a variable because I need to pass same output as input to multiple api's down the script. @terdon
– harsha
6 hours ago
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177279%2fhow-to-print-variable-value-in-next-line-using-echo-command%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Please edit your question and show us the exact commands you are using. We need to see the
curlcommand and theechocommand. You're probably simply not quoting correctly, but you almost certainly don't need to echo at all. If you give us the full commands, we can give you a better solution.– terdon♦
10 hours ago
@terdon I have updated the question with the curl command I'm using.
– harsha
10 hours ago
Thank you, but as I said before, we need all commands, including the
echoone. In fact, especially theecho. How are you saving thecurloutput in a variable? How are you then printing that variable? And what parsing are you trying to do?– terdon♦
10 hours ago
@dessert I have updated it
– harsha
10 hours ago