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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -