I have a file coming in with many columns, but the first character of the the coumn is a record type, if I wanted to get a true/false kind of response as to whether it contains at least one of each type of record how would be best?
sed -e '/01/!d; /02/!d; /03/!d; /04/!d' datafile
returns many rows if any are true, I need it to return if all are true and return false if at least one is missing.
Is there an easier way to do this?
Headcheck1=`awk -F"," '$1=="01" {print $1}' datafile will do one line only, am a little frustrated.
help please.