Skip to content

Instantly share code, notes, and snippets.

@kaihendry
Created July 10, 2020 05:02
Show Gist options
  • Save kaihendry/735dd38ff8e505dcb1fd42973c8a0954 to your computer and use it in GitHub Desktop.
Save kaihendry/735dd38ff8e505dcb1fd42973c8a0954 to your computer and use it in GitHub Desktop.
lines of firefox-78.0.1
[hendry@t480s src]$ find firefox-78.0.1 -type f | xargs wc -l | grep 'total$' | awk '{ SUM += $1} END { print SUM }'
wc: firefox-78.0.1/obj-x86_64-pc-linux-gnu/_virtualenvs/init/lib/python2.7/site-packages/setuptools/script: No such file or directory
wc: '(dev).tmpl': No such file or directory
wc: firefox-78.0.1/obj-x86_64-pc-linux-gnu/_virtualenvs/init/lib/python2.7/site-packages/setuptools/command/launcher: No such file or directory
wc: manifest.xml: No such file or directory
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
10024971
[hendry@t480s src]$ find firefox-78.0.1 -type f | xargs -0 wc -l | grep 'total$' | awk '{ SUM += $1} END { print SUM }'
xargs: argument line too long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment