Linux Common Commands--xargs

Source: Internet
Author: User
xargs 将标准输入转换成命令行参数

Syntax format: xargs "option" xargs [options]
Note: There must be at least one space between the Xargs command and the following options and options
Option Description:

parameter Options Explanatory notes
-N Specify the maximum number of parameters per row n, you can divide the standard input text into multiple rows, n parameters per row, and the default spaces to separate
-D Custom delimiter
-I. Replace the previous result with {}
-0 (number 0) Use NULL instead of a space as a delimiter, with the output of the-print () option of the Find command

Case one:
Example of multi-line input variable line

Case TWO:
Examples of parameters

Case Three
Combine the find command for a delete operation

Linux Common Commands--xargs

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.