Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wc -l *.php
- find . -name '*.php' | wc -l
- find . -name '*.php' | xargs wc -l
- ( find ./ -name '*.php' -print0 | xargs -0 cat ) | wc -l
- wc -l **/*.php
- shopt -s globstar
- $ cloc --exclude-lang=DTD,Lua,make,Python .
- 2570 text files.
- 2200 unique files.
- 8654 files ignored.
- http://cloc.sourceforge.net v 1.53 T=8.0 s (202.4 files/s, 99198.6 lines/s)
- -------------------------------------------------------------------------------
- Language files blank comment code
- -------------------------------------------------------------------------------
- Javascript 1506 77848 212000 366495
- CSS 56 9671 20147 87695
- HTML 51 1409 151 7480
- XML 6 3088 1383 6222
- -------------------------------------------------------------------------------
- SUM: 1619 92016 233681 467892
- -------------------------------------------------------------------------------
- 59 text files.
- 56 unique files.
- 5 files ignored.
- http://cloc.sourceforge.net v 1.53 T=0.5 s (108.0 files/s, 50180.0 lines/s)
- -------------------------------------------------------------------------------
- Language files blank comment code
- -------------------------------------------------------------------------------
- C 36 3060 1431 16359
- C/C++ Header 16 689 393 3032
- make 1 17 9 54
- Teamcenter def 1 10 0 36
- -------------------------------------------------------------------------------
- SUM: 54 3776 1833 19481
- -------------------------------------------------------------------------------
- find . -name '*.php' | xargs wc -l
- $ find -name '*.php' | xargs cat | wc -l
- wc `find . -name '*.[h|c|cpp|php|cc]'`
- find . -type f -exec wc -l {} ; | awk '{ SUM += $0} END { print SUM }'
- find . -name *.py -exec wc -l {} ; | awk '{ SUM += $0} END { print SUM }'
- find . -name '*.php' -type f | xargs wc -l
- find . -name '*.php' -type f | sort | xargs wc -l
- find . -name '*.php' -type f | xargs wc -l | sort -nr
- find . -name '*.php' -type f | xargs cat | wc -l
- find . -name '*.php' -type f -exec cat -- {} + | wc -l
- wc `find`
- wc `find | grep .php$`
- total_count=0
- for file in $(find . -name *.php -print)
- do
- count=$(wc -l $file)
- let total_count+=count
- done
- echo $total_count
- find . -type f -name '*.php' -exec bash -c 'wc -l "$0"' {} ; | awk '{s+=$1} END {print s}'
- #this example prints line count for all found files
- total=0
- find /path -type f -name "*.php" | while read FILE; do
- #you see use grep instead wc ! for properly counting
- count=$(grep -c ^ < "$FILE")
- echo "$FILE has $count lines"
- let total=total+count #in bash, you can convert this for another shell
- done
- echo TOTAL LINES COUNTED: $total
- wc -l `tree -if --noreport | grep -e'.php$'`
- cat `/gnuwin32/bin/find.exe . -name *.php` | wc -l
- find . -name '*.php' | xargs wc -l | sort -r
- find . -name '*.php' | xargs wc -l | sort -nr | egrep -v "libs|tmp|tests|vendor" | less
- wc -l `find . -name "*.php"`
- find /path -type f -name "*.php" | while read FILE
- do
- count=$(wc -l < $FILE)
- echo "$FILE has $count lines"
- done
- $cd directory
- $wc -l* | sort -nr
- ECHO OFF
- for /r %%G in (*.php) do (
- busybox grep . "%%G" | busybox wc -l
- )
- find ./ -type f -exec wc -l {} ; | cut -d' ' -f1 | paste -sd+ | bc
- wc -l `find . -name "*.php"`
- wc -l $(find . -name "*.php")
Add Comment
Please, Sign In to add comment