Confusión de opciones de comando en curl en Linux

Confusión de opciones de comando en curl en Linux

¿Se pregunta cuál es la función del @signo? Aquí hay un comando de ejemplo,

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

Aquí hay más antecedentes relacionados,

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

Respuesta1

simplemente significa leer el formato del archivo nombrado.

del 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 @ de esta manera es bastante común, curl lo usa en varios lugares, otros comandos también lo hacen.

información relacionada