Change spaces with underscore in filename via cmd

Mac OSX 13 ม.ค. 2020

For all files in current directory

for i in *;do mv "$i" "${i// /_}";done

แท็ก

Onyx

Just a middle-aged programmer, Can do many things but not the most.