close
    • chevron_right

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

      Jim Salter · news.movim.eu / ArsTechnica · Monday, 30 August, 2021 - 11:15

    IT programmer as genius or wizard sitting behind computer.

    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:dt4LdTJdYTU:V_sGLiPBpWUindex?i=Wta5Bjobr_0:dt4LdTJdYTU:F7zBnMyn0Loindex?d=qj6IDK7rITsindex?d=yIl2AUoC8zA