Bash tips and tricks

Tuesday, August 26th, 2008

How to check if files containt "this" and "that" grep -i 'for nut in self._foundNuts:' `grep -ril "loop(1):" *`

lowercase the filenames

Monday, August 4th, 2008

#!/bin/sh # lowerit # convert all file names in the current directory to lower case # only operates on plain files--does not change the name of directories # will ask for verification before overwriting an existing file # http://www.linuxjournal.com/content/convert-filenames-lowercase (more...)

Database migration from cp1251 -> utf8

Sunday, April 13th, 2008

It was time to migrate http://www.cenite.com database from cp1251 -> utf8, I have prepared one nice script which will show you step by step the commands that you should run in order to migrate your database. Copy the content to cp1251toUTF8.sh or use the commands manually The script is making echo instead ...