Skip to content

Comment on Parsing JSON in Forty Lines of Awkparent

Comments

Us old UNIX guys would likely go for cut for this sort of task:

     cut -d " " -f1-2,4-5 file.txt
where file.txt is:
     one two three four five
and the return is:
     one two four five
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.