Archive for the 'How To' Category

How to Delete Wordpress Comments From the Command Line (CLI)

Thursday, February 11th, 2010

Haven’t logged into your wordpress blog for a while? Find a few thousand spam comments that you need to delete? I had 34,020 comments in my spam queue. Here is how you can delete them without doing it 20 at a time =P
1. Log into mysql (mysql -u root -p)
2. Select the appropriate database (probably [...]

Grep How To – Part 1

Wednesday, February 7th, 2007

Here are a few little tid bits that I use on a daily basis with the awesome Grep command line tool.
Grep allows you to search files for symbols or strings (groups of characters like words) and will return the files that the search sting is found in. For example you want to search a website’s [...]