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.

1
for f in *' '*; do mv "$f" "`echo $f | sed -e 's/ /_/g'`"; done

Cheers!

Posted in Linux, Note to self, Operatingsystem at October 20th, 2010. No Comments
Tagged with , , . Written by:

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….

Read More…

Posted in Hosting, Operatingsystem at November 5th, 2008. 2 Comments
Tagged with , , , , . Written by:

It's past my bedtime is using WP-Gravatar