confusão de opção de comando em curl no Linux

confusão de opção de comando em curl no Linux

Quer saber qual é a função do @signo? Aqui está um exemplo de comando,

curl -w "@curl-format.txt" -o /dev/null -s "http://wordpress.com/"

Aqui estão mais origens relacionadas,

https://stackoverflow.com/questions/18215389/how-do-i-measure-request-and-response-times-at-once-using-curl

Responder1

significa apenas ler o formato do arquivo nomeado.

do manual:

  -w, --write-out <format>
    Defines  what  to  display on stdout after a completed
and successful operation. The format is a string that may contain
plain text mixed with any number of variables. The string can be 
specified as "string", to get read from a particular file you
specify it "@filename" and to tell curl to read the format from
          stdin you write "@-".

usar @ assim é bastante comum, curl usa em vários lugares, outros comandos também.

informação relacionada