MKB MKB - 8 months ago 53
Bash Question

How to append a file with the existing one using CURL?

I've searched all over the web but couldn't find anything useful for this. Using CURL, I want to append content to a file which is already existing and named as

. Can anyone please tell me how can I do it using curl. The commands I've tried are

curl --output test.pls

curl -K --output test.pls

curl -a --output test.pls

But all of above starts creating files from scratch.They don't keep the initial content of file Can anyone please help me!


Use the shell's appending output redirection (>>) rather than curl's --output option.

curl >> test.pls