A reminder for myself how to batch rename files with spaces in bash.
This is how i rename files with space to have underscores instead. DO NOT blame me if this commando erases all your files I found several examples how to do this when googling but they all failed. Some of them did nothing and some erased half my filenames. SO IF YOU USE THIS, PLEASE TRY IT IN A FOLDER WITHOUT IMPORTANT FILES FIRST.
for f in *' '*; do mv "$f" "`echo $f | sed -e 's/ /_/g'`"; done
Posted in Linux
, Note to self
at October 20th, 2010. No Comments
Tagged with bash
. Written by: stjernstrom
We recently got in trouble with two Gentoo machines that where running under VMware ESX & ESXi.
The hosts froze randomly (Even the console in vmware froze). Especially when putting a little load on the machines. After hours of testing we found that removing virtual CPU’s from the host solved the problem. More that one CPU got the machine to freeze after some time.
!! Unsatisfied solution !! So after a couple of more hours we found a working solution….