14 Dec
Posted by: etd in: Shell Script
Just a quick tip!
You have to use the bash function ${foo//string1/string2}. Check the Advanced Bash-Scripting Guide for a complete list of string manipulating functions.
${foo//string1/string2}
for foo in *; do mv "$foo" ${foo// /_}; done
Popularity: 18% [?]
Name (required)
E-mail (required, never displayed)
URI
Copyright © 2007 - usefulfor.com/nothing - is proudly powered by WordPress InSense 1.0 Theme by Design Disease brought to you by HostGator Web Hosting.
Leave a reply