nix, shell, perl, php, mysql and mac os x tips and tricks

Tuesday, April 8, 2008

Count files in subdirectories

find . -type f | wc -l

Sunday, April 6, 2008

MySQL search and replace

UPDATE table_name SET table_field = REPLACE(table_field,'replace_that','with_this');