Previously I’ve shown how to use the bash while loop in a bash script. Today I’m going to show how to use another type of do loop in bash: the for loop. The for loop is a little different from the other looping structures in bash. The other loop structures work by evaluating whether an …
Continue reading Bash to Basics: The For LoopIf you run the Google Gears add-on for Firefox on Linux, then you’ve probably been getting annoyed by Firefox trying to update the add-on and getting a failure message that interrupts your web browsing.
Continue reading Fix Google Gears for Firefox on LinuxUpdate: I’ve written a simpler procedure that will uninstall LAMP with a single command. I’m leaving this post here for historical reasons, but the process is much faster if you follow my newer post. The most popular post on this blog is How to Install LAMP on Ubuntu 9.10. On that post, I’ve had a …
Continue reading How To Uninstall LAMP in Ubuntu 9.10 Karmic KoalaI spent a great deal of time this weekend working on updates to my WordPress theme. One of the more noticeable changes is the addition of support for threaded comments. The function has been available in WordPress since version 2.7, but I didn’t get around to modifying my theme until now. Hopefully, this will make …
Continue reading Tux Tweaks – Now With Threaded CommentsYou may have an occasion that you want to know the number of files in a directory. There are a couple of simple ways to do this. The first way is to list the files with ls and count them with wc. No, wc doesn’t stand for the place you go to relieve yourself; in …
Continue reading Command Line Basics: Count Files