Sometimes we have a list with which we may need to do the same action on it. In such cases xargs command is very useful in unix.
Some scenarios:
Get word count of the files in a file
> ls | xargs wc -l
A technology and programming blog to share knowledge and solutions to problems came across
Comments
Post a Comment