xargs command
Hi,
I am reading a book on linux essentials. It has explained the function of "xargs" together with "find" command that baffled me. Although I have understood what xargs does, I need to fully grasp it. In the pool of internet, I just found similar examples for newbs. Does anyone know a source to make me fully understand this command? |
Best thing with any cmd is to actually try the examples and try to come up with a few variations yourself...
You only really learn a tool (not just *nix cmds) by using it. |
Quote:
Quote:
|
The xargs command takes the standard input and uses it as the arguments of the command: for example the command
Code:
find . -name \*.txt | xargs grep pattern |
All times are GMT -5. The time now is 04:49 AM. |