Created
          May 14, 2025 12:21 
        
      - 
      
 - 
        
Save brunogama/e95d6cbf808824c1993bd265112731ad to your computer and use it in GitHub Desktop.  
    lowerc case and snake case all files shell
  
        
  
    
      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 f in *; do new=$(echo "$f" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/_/g' | sed -E 's/^_|_$//g'); if [ "$f" != "$new" ]; then mv "$f" "$new"; fi; done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment