removing (not replacing!) space character in filenames

Dec 18, 2013 16:43


As a GNU/Linux user, it is most annoying to encounter filenames including spaces. Below is a quick script that can be applied from the command line for a directory containing such files:
for i in ./*; do mv "$i" `echo $i | tr -d ' ' `; done so; copy the command above to the command terminal and voila, all the filenames in the active directory are changed accordingly.
Previous post Next post
Up