Quite often I want to pipe the content of multiple files into a command line utility. An example would be to count the lines of sql in my project. This is another case, where xargs
comes in handy:
find . -name "*.sql" | xargs cat | wc -l
Quite often I want to pipe the content of multiple files into a command line utility. An example would be to count the lines of sql in my project. This is another case, where xargs
comes in handy:
find . -name "*.sql" | xargs cat | wc -l
by
Tags:
Leave a Reply