Quick and easy command to instantly change filenames from mixed upper case to all lower case names.
This one is short and sweet and a great command snippet to keep handy when others give you mixed case files not knowing Linux understands these differences literally (as different files).
# CHANGES ALL FILE NAMES THAT INCLUDE UPPERCASE FILENAMES INTO LOWERCASE
# STEP ONE: ENTER THE FOLDER THAT CONTAINS YOUR FILES
cd /home/YourUser/SomeFolderwithFiles/
# STEP TWO: RUN THIS COMMAND
for i in $( ls | grep [A-Z] ); do mv -i $i `echo $i | tr 'A-Z' 'a-z'`; done
Basic knowledge on commands can have a tremendous impact upon daily work flows, especially among multi-department projects where one team will send files to another for a web administrator to "just make work." Are you using Linux in your business? If not, contact us and we'll show you how minutes a day can end up saving you thousands of dollars a year per employee massing huge cost savings and value-add to your bottom line.
Comments powered by CComment