RSSAmplifier

ATOMWOLF · Aug 24, 2018

Search and parse a field with Awk

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Assumed audience : folks who use the command line Type : tip I frequently need to do simple parsing. Often I resort to grep and cut, or a regular expression I send through Python. I rarely use something like awk. I needed to look for a pattern in some text coming through a pipeline (“Configuration backup archive complete”), split that line up by colons, and print the second field. This is what I…

Read on atomwolf.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.