Created
          May 13, 2015 08:30 
        
      - 
      
- 
        Save pompopo/b7a43e1238dab8acfca0 to your computer and use it in GitHub Desktop. 
    使われてないPDFファイルを検索
  
        
  
    
      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/sh | |
| for pdf in `find . -name '*.pdf'` | |
| do | |
| name=`basename $pdf .pdf` | |
| if ! grep -shqI "$name" `find . -type f -name "*.[mh]" -o -name "*.xib" -o -name "*.storyboard"`;then | |
| echo "$pdf is not used" | |
| fi | |
| done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment