Created
          May 21, 2020 16:42 
        
      - 
      
- 
        Save paulcarroty/006ecc9d66211ddad521b599accc5f76 to your computer and use it in GitHub Desktop. 
    clean bad filenames
  
        
  
    
      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 them all | |
| ls destination | egrep '\[' >> to_rename | |
| # cut [*] | |
| while read line; do echo $line | sed -e 's/\[[^][]*\] //g' ; done < /tmp/to_rename | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment