In modern internet lingo, awk is a synonym for awkward or abnormal. However, the Linux tool awk (and its brethren, gawk and nawk) are anything but awkward.
Awk - the programmable filter
So far, we've looked at a set of filters that perform fairly singular tasks. LESS and MORE are designed to filter output to the
Sed is a powerful editing tool, but difficult for most modern computer users to grasp. We'll cover some of the basics here so that you can understand it when you see it in a script.
Soon we'll talk about perhaps the most powerful programmable filter ever conceived (the scripting language AWK), but first let's look at a few other common filters and their uses.
The filter more is a program that lets us print output one screen at a time. If you've ever run a diff between two files or
Many valuable programs in Linux rely on the concept of the Regular Expression (REGEX). It's important for us to understand the basics of this language so that we can better use the tools we're provided.
Let's revisit filters with a timeless classic - grep.
I'm currently away from my usual posting environment. Hanging out with old friends, working on my real job, and fighting with the internet connection is limiting my ability to write.
So, don't expect a post before Thursday. If I do get one out, it'll be
Here's a quick example of scripting in sh.
We've used the terminal a number of times. It turns out that we can write simple scripts to automate some of our routines.
Alright, enough theory. Time to actually debug something!
Most IDEs come with a built-in debugger. However, for most skilled C programmers, there is only one debugger: gdb.