Basic awk
July 6, 2023You can use the logical operators and (written &&) and or (written ||) to add specificity to your conditionals. For example, to select and print only records with the string “purple” in the second column and an amount less than five in the third column: $2 == “purple” && $3 < 5 {print $1} If a record has “purple” in column two but […]