/ Published in: Bash
                    
                                        
Expects all files to be in the current directory; does not recurse into subdirectories. Replace "TEXTTOREMOVE" with the text you wish to remove from the filename. Replace *.csv with a search term appropriate for your situation.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
for i in *.csv; do mv "$i" "${i/TEXTTOREMOVE/}"; done
URL: http://www.debian-administration.org/articles/150
Comments
 Subscribe to comments
                    Subscribe to comments
                
                