I am trying to filter records based on number of "|", delimiter in my application. If number of "|" is greater than 14 its a bad record, else its a good record. I have to redirect output to two different files based on the if-then-else evaluation in AWK.
if number of �|� in file_0 > 14
move those records to file_1
else
move those records to file_2
Can someone please share me the syntax as how i have to code above scenario in AWK???