Skip to content

Instantly share code, notes, and snippets.

View jakerieger's full-sized avatar
🎯
Focusing

Jake Rieger jakerieger

🎯
Focusing
  • Cleveland, OH
View GitHub Profile
source_dirs=(dir1 dir2 dir3)
total=0
root_dir=$(pwd)
for dir in "${source_dirs[@]}"; do
full_dir="$root_dir/$dir"
cd $full_dir
cpp_lines=$(find . -name '*.cpp' | xargs -I {} cat {} | wc -l)