Created
July 6, 2015 02:06
-
-
Save viviparous/fe7ed083a2c11c1873de to your computer and use it in GitHub Desktop.
linux: call bash script from find command; bash script runs perlcritic on each file found; output appended to file, separated by name of file examined
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#find lib/ -type f -name "*.pm" | while read file; do ./pcritic_shell.sh "$file"; done | |
OFILE=critic_out.txt | |
echo Process $1 | |
echo "= = = = = = = =" >> $OFILE | |
echo "= = = = = = = =" >> $OFILE | |
echo `date` >> $OFILE | |
echo $1 >> $OFILE | |
perlcritic -1 $1 >> $OFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment