Bash: how to pipe each result of one command to another -
I want to calculate the number of lines from all files received Total The following commands:
shell> Find -name * .info
All .info files are nested in sub-directories so that I just can not:
shell> ; Wc -l * .info
I'm sure this should be in the performance of any Bash users, but I'm stuck!
Thanks
wc -l search -name * .info `
If you just want to total, then use
wc -l` Find. -name * .info` | Piping also works for: xargs
, and it is expected that the command line can be too long. Find -name *. Info | Exgs wc -l
Comments
Post a Comment