I wrote the following script:
for filename in `find . -name '*'.cpp | grep $IN_REGEX | grep -v $OUT_REGEX` do echo "Output file is $OUTPUT_FILE" count=`git log --pretty=format: --name-only $filename | grep -v ^$ | wc -l` echo "$count $filename" >> $OUTPUT_FILE done
But nothing gets written into the output file.
- I have set the values for
- The code inside the loop is being executed. I checked this with an
- When I remove the
>> $OUTPUT_FILEI get the output.
- I tried a
touch $OUTPUT_FILEinside the script and that is working fine.
Can someone please point out what is my mistake here?