> esc
move open g h home ? help

Posts tagged bash

All tags

Batch rename extensions

Another snippet, this time to batch rename the extension of a set of files to another, in my case I needed to rename .html files as .mustache so, as before, (when I set up a scripts folder in my user folder and added it

Find in files script

Similar to the previous post, I can never remember the correct format for grepping recursively through folders for a particular string. So I added the following script to a file called findinfiles in the scripts director

Find files script

I can never remember the correct format of the find command so that I can recusively search through folders for a particular file or files. So I set up a scripts folder in my user folder and added it to my path in my .ba

Automatic backup of mysql database to S3

Most of my websites run on Amazon's EC2 servers and in setting up a new one today I thought I had better come up with a better backup strategy. In the past I've just asked EC2 to create either AMI or EBS snapshots, but t