Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

what's the stand-alone hyphen (between the -C & -O) stand for in this command?

curl -C - -O http://www.intersil.com/content/dam/Intersil/documents/fn67/fn6742.pdf

FWIW- I'm following a tutorial here.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

-C - automatically determines how to resume the transfer, based upon the input and output files.

From man curl (note the second paragraph):

   -C/--continue-at <offset>
          Continue/Resume a previous file transfer at the  given  offset.
          The  given  offset  is  the  exact number of bytes that will be
          skipped, counting from the beginning of the source file  before
          it  is  transferred  to the destination.  If used with uploads,
          the FTP server command SIZE will not be used by curl.

          Use "-C -" to tell curl to automatically find out where/how  to
          resume  the transfer. It then uses the given output/input files
          to figure that out.

          If this option is used several times,  the  last  one  will  be
          used.
share|improve this answer
    
thx. i must have overlooked that in the man page... –  Meltemi Jun 7 '12 at 18:12

It will just resume the download from the last position, from man curl:

   -C/--continue-at <offset>
          Continue/Resume a previous file transfer at  the  given  offset.
          The  given  offset  is  the  exact  number of bytes that will be
          skipped, counting from the beginning of the source  file  before
          it is transferred to the destination.  If used with uploads, the
          FTP server command SIZE will not be used by curl.

          Use "-C -" to tell curl to automatically find out  where/how  to
          resume  the  transfer. It then uses the given output/input files
          to figure that out.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.