Tech

Command line wizardry, part two: Variables and loops in Bash

Enlarge / Getting the hang of iteratively building commands interactively is all it really takes to become a command line wizard. (credit: Bashar Shglila / Getty Images ) In our first tutorial on command line wizardry, we covered simple redirection and the basics of sed, awk, and grep. Today, we’re going to introduce the concepts […]

Tech

Linux/BSD Command Line 101: Using awk, sed, and grep in the Terminal

Enlarge (credit: jozefmicic via Getty Images ) As a relatively isolated junior sysadmin, I remember seeing answers on Experts Exchange and later Stack Exchange that baffled me. Authors and commenters might chain 10 commands together with pipes and angle brackets—something I never did in day-to-day system administration. Honestly, We doubted the real-world value of that. […]