(TIL) Nix: Save matching and non matching lines with awk

less than 1 minute read

awk '/pattern/ {print $0 >"yes.csv"; next}{print $0 >"no.csv"}' input.csv

Tags: ,

Categories:

Updated:

Comments