Created
          June 8, 2012 16:13 
        
      - 
      
- 
        Save meskarune/2896508 to your computer and use it in GitHub Desktop. 
    Mass File Editing
  
        
  
    
      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 | |
| for file in *.css; do | |
| mv $file $file.old | |
| sed 's/FINDSTRING/REPLACESTRING/g' $file.old > $file | |
| rm -f $file.old | |
| done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
you can use "sed -i" instead of "mv; sed; rm" :)
or as a complete one-liner: sed -i 's/FIND/REPLACE/g' *.css