Posts Tagged: Shell Script

I recently had to replace a lot of words inside a bunch of text files, and I found myself referencing the recursive replace script that I originally posted here. However, I thought that it could use some work, as it was annoying to have to change the word to replace manually each time I wanted… Read Article →

I am brushing up on my bash scripting skills, as I’ve only learned bash through trial and error as well as stealing code found on the Internet. Something simple that I came across is preventing unintentional file/folder removals such as the classic “rm -rf /” which will delete the entire file system in some cases…. Read Article →

I needed a simple backup script that compressed a folder and saved it on a locally mounted network share. I found the following script on this Github page, which I then modified to suit my needs. I run this script daily through Cron (make sure to use bash to run it, sh does not work)…. Read Article →

When I configured this web server (apache) I wanted a simple visitor counter that could keep track of daily unique visitors. While this is something that has been done time and time again I though it would be interesting to try and write my own. I originally wrote it to run on FreeBSD, but have… Read Article →

Scroll To Top