[linux] xargs

A description

    xargs - build and execute command lines from standard input

    The input data standards established as the command line


Second, the example

find ./ -type f | xargs

Then all files in the current directory, the command line parameters form


find ./ -type f | xargs grep keyword --color

1.grep keyword files --color

Meaning keyword query keywords in files these documents

2.find ./ -type f | xargs

It is able to get files of command line parameters

Published 140 original articles · won praise 28 · views 180 000 +

Guess you like

Origin blog.csdn.net/qq_16097611/article/details/80406268