Created
July 4, 2013 16:01
-
-
Save jamiebullock/5928818 to your computer and use it in GitHub Desktop.
List files from one directory that are referenced by files in another directory (recursive)
This file contains 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
for file in *;do grep -r -o $file __directory__;done | tr -s ':' | cut -d ':' -f2 | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment