I'd like to print a line if a substring is matched in a case insensitive manner
something like do a case insensitive search for ABCD as a substring:
awk '\{ if \(substr\($1,1,4\) == "[Aa][Bb][Cc][Dd]"\) print $1 \}' infile > outfile
I'm not certain how to make the syntax work???
Thanks