0 Replies - 1044 Views - Last Post: 02 October 2008 - 09:22 AM

#1 girasquid  Icon User is offline

  • Barbarbar
  • member icon

Reputation: 108
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Recursive Linecount in directory

Posted 02 October 2008 - 09:22 AM

Description: Run the snippet from within the project's root directory.This snippet will echo the total linecount for a directory.
for file in `find . -type f`; do cat $file; done | wc -l

Is This A Good Question/Topic? 0
  • +

Page 1 of 1