PHP command executes shell pin this report error

Source: Internet
Author: User
Tags sorts

Reason for error: sort

Specific command grep ' download ' Test.log |awk ' {print $} ' |sort-r|uniq-c|sort-nr|head-n 10|less '

Error

Understand the words, help explain the reason, PS: The result of the implementation is correct.

Guess:
Sort first writes the contents of the file to a temporary file, and then sorts and writes the output results.

Additional notes:
Baidu on similar issues
Http://wapiknow.baidu.com/question/466815745.html

Reply content:

Reason for error: sort

Specific command grep ' download ' Test.log |awk ' {print $} ' |sort-r|uniq-c|sort-nr|head-n 10|less '

Error

Understand the words, help explain the reason, PS: The result of the implementation is correct.

Guess:
Sort first writes the contents of the file to a temporary file, and then sorts and writes the output results.

Additional notes:
Baidu on similar issues
Http://wapiknow.baidu.com/question/466815745.html

  1. Where did your sort program come from? The GNU sort 8.24 has been confirmed not to report such noisy errors. In fact, the GNU coreutils have never been so dumb.

  2. Calling from PHP, you don't have any sense to add less. Just 10 rows of data, do you use less meaningless?

Additional notes:
Baidu on the programming technology information is slag slag.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.