Last active
          April 7, 2016 10:44 
        
      - 
      
 - 
        
Save dunckr/1e149d5decf1f02e4fb9 to your computer and use it in GitHub Desktop.  
    less2sass multiple files https://rubygems.org/gems/less2sass 
  
        
  
    
      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
    
  
  
    
  | for filename in ./*.less; do less2sass "${filename}" "_${filename/.less/.scss}"; done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
I had errors using the script, caused by the underscore - the script tries to create files in
_./filename.scssinstead of./_filename.scss.Removing the
./solves the errors.I enhanced the script a bit so you can give optional parameters for less/source and sass/destination directories:
Execute like this:
If you need your sass files in the same folder: