Awk column with pattern array
问题 Is it possible to do this but use an actual array of strings where it says "array" array=(cat dog mouse fish ...) awk -F "," '{ if ( $5!="array" ) { print $0; } }' file I would like to use spaces in some of the strings in my array. I would also like to be able to match partial matches, so "snow" in my array would match "snowman" It should be case sensitive. Example csv s,dog,34 3,cat,4 1,african elephant,gd A,African Elephant,33 H,snowman,8 8,indian elephant,3k 7,Fish,94 ... Example array