perl - Need to find list of scripts that uses a certain file -
i have file named "performance". need know scripts use file.
i don't believe there straight forward way of listing files used scripts. have run grep
in combination of find
check if script contains name of file want check for. knowing exact name of file help. using words performance
might end grepping files uses word in comments.
find /path/ \( -name "*.sh" -o -name "*.pl" \) -type f -print0 | xargs -0 grep "performance"
Comments
Post a Comment