{"id":8324,"date":"2020-07-28T21:01:13","date_gmt":"2020-07-28T13:01:13","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8324"},"modified":"2020-07-28T21:01:13","modified_gmt":"2020-07-28T13:01:13","slug":"lessecho","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lessecho","title":{"rendered":"lessecho\u547d\u4ee4 – \u5c55\u5f00\u5143\u5b57\u7b26"},"content":{"rendered":"\n

lessecho\u662f\u4e00\u4e2a\u7b80\u5355\u5730\u5728\u6807\u51c6\u8f93\u51fa\u4e0a\u91cd\u590d\u5176\u53c2\u6570\u7684\u7a0b\u5e8f\uff0c\u4f46\u662f\u4efb\u4f55\u5305\u542b\u7a7a\u683c\u7684\u53c2\u6570\u90fd\u8981\u7528\u5f15\u53f7\u62ec\u8d77\u6765\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lessecho [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-ox<\/td>\u6307\u5b9a\u201cx\u201d\u4f5c\u4e3a\u5de6\u5f15\u53f7\u5b57\u7b26<\/td><\/tr>
-cx<\/td>\u5c06\u201cx\u201d\u6307\u5b9a\u4e3a\u53f3\u5f15\u53f7\u5b57\u7b26<\/td><\/tr>
-pn<\/td>\u6307\u5b9a\u201cn\u201d\u4f5c\u4e3a\u4e00\u4e2a\u6574\u6570\u4f5c\u4e3a\u5de6\u5f15\u53f7\u5b57\u7b26<\/td><\/tr>
-dn<\/td>\u5c06\u201cn\u201d\u6307\u5b9a\u4e3a\u53f3\u5f15\u53f7\u5b57\u7b26\uff0c\u4f5c\u4e3a\u6574\u6570<\/td><\/tr>
-mx<\/td>\u6307\u5b9a\u201cx\u201d\u4e3a\u5143\u5b57\u7b26<\/td><\/tr>
-nn<\/td>\u6307\u5b9a\u201cn\u201d\u4e3a\u5143\u5b57\u7b26\uff0c\u4f5c\u4e3a\u6574\u6570<\/td><\/tr>
-ex<\/td>\u6307\u5b9a\u201cx\u201d\u4f5c\u4e3ametachars\u7684\u8f6c\u4e49\u5b57\u7b26<\/td><\/tr>
-fn<\/td>\u6307\u5b9a\u201cn\u201d\u4f5c\u4e3ametachars\u7684\u8f6c\u4e49\u5b57\u7b26\uff0c\u4f5c\u4e3a\u6574\u6570<\/td><\/tr>
-a<\/td>-a\u6307\u5b9a\u5f15\u7528\u6240\u6709\u53c2\u6570,\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u53ea\u5f15\u7528\u5305\u542b\u7a7a\u683c\u7684\u53c2\u6570<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5728\u6587\u4ef6\u4e2d\u6307\u5b9a\u201cx\u201d\u4f5c\u4e3a\u5de6\u5f15\u53f7\u5b57\u7b26\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lessecho -ox<\/pre>\n\n\n\n

\u6307\u5b9a\u201cn\u201d\u4f5c\u4e3a\u4e00\u4e2a\u6574\u6570\u4f5c\u4e3a\u5de6\u5f15\u53f7\u5b57\u7b26\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lessecho -pn<\/pre>\n\n\n\n

\u6307\u5b9a\u201cx\u201d\u4e3a\u5143\u5b57\u7b26\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lessecho -mx<\/pre>\n","protected":false},"excerpt":{"rendered":"

lessecho\u662f\u4e00\u4e2a\u7b80\u5355\u5730\u5728\u6807\u51c6\u8f93\u51fa\u4e0a\u91cd\u590d\u5176\u53c2\u6570\u7684\u7a0b\u5e8f\uff0c\u4f46\u662f\u4efb\u4f55\u5305\u542b\u7a7a\u683c\u7684\u53c2\u6570\u90fd\u8981\u7528\u5f15\u53f7\u62ec\u8d77\u6765\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1a […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8324"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8324"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8324\/revisions"}],"predecessor-version":[{"id":8459,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8324\/revisions\/8459"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}