想知道 sign 的功能是什么@
?下面是一个示例命令,
curl -w "@curl-format.txt" -o /dev/null -s "http://wordpress.com/"
以下是更多相关背景,
答案1
它只是意味着从命名的文件中读取格式。
来自手册:
-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 "@-".
像这样使用 @ 相当常见,curl 在几个地方使用它,其他命令也这样做。