A
A
Andrew2016-12-13 16:04:09
linux
Andrew, 2016-12-13 16:04:09

How to append to a file using curl in the console?

Hello.
There is a command
curl -o file.txt http://site.com
that saves text from site.com to file.txt , but file.txt is overwritten all the time. How can I make text start on a new line?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2016-12-13
@ntzch

curl http://site.com >> file.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question