Article 5NYB0 Linux/BSD command line wizardry: Learn to think in sed, awk, and grep

Linux/BSD command line wizardry: Learn to think in sed, awk, and grep

by
Jim Salter
from Ars Technica - All content on (#5NYB0)
GettyImages-950753248-800x1067.jpg

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, I doubted the real-world value of that. Surely, this was just an exercise in e-braggadocio, right?

Trying to read the man pages for the utilities most frequently seen in these extended command chains didn't make them seem more approachable, either. For example, the sed man page weighs in at around 1,800 words alone without ever really explaining how regular expressions work or the most common uses of sed itself.

If you find yourself in the same boat, grab a beverage and buckle in. Instead of giving you encyclopedic listings of every possible argument and use case for each of these ubiquitous commands, we're going to teach you how to think about them-and how to easily, productively incorporate them in your own daily command-line use.

Read 30 remaining paragraphs | Comments

index?i=Wta5Bjobr_0:6TMo0KZwbPQ:V_sGLiPB index?i=Wta5Bjobr_0:6TMo0KZwbPQ:F7zBnMyn index?d=qj6IDK7rITs index?d=yIl2AUoC8zA
External Content
Source RSS or Atom Feed
Feed Location http://feeds.arstechnica.com/arstechnica/index
Feed Title Ars Technica - All content
Feed Link https://arstechnica.com/
Reply 0 comments