#!/bin/sh
grep -r -l --include *.c --include *.h . > filelist
while read file; do
OUTPUT=`pmccabe -F $file 2>/dev/null | sed -r -e "s/[\t\ ]+/,/g"|cut -d, -f1-5`
FILENAME=`echo $p | sed 's/.*\///'`
echo $OUTPUT","$FILENAME","$file
grep -r -l --include *.c --include *.h . > filelist
while read file; do
OUTPUT=`pmccabe -F $file 2>/dev/null | sed -r -e "s/[\t\ ]+/,/g"|cut -d, -f1-5`
FILENAME=`echo $p | sed 's/.*\///'`
echo $OUTPUT","$FILENAME","$file
done < filelist
Add new comment