Very useful bash awk scripting tricks.
Awk and bash are a very good combination for extracting certain text strings from a text file or the output of a program. Here I am extracting only the values that are surrounded by square brackets. 4.4 Mon Jan 27 jason@Yog-Sothoth 0: $ lspci | awk -vRS="]" -vFS="[" ‘{print $2}’ AHCI mode GeForce GTX 10504.4 … Read more