Input file (contain column 1 with repeat value in number and second column may contain voice,email, tel, voice mail):123,voice123, tel324,voice mail345,email123,emailOutput file with headers and required Y if they have any value in column two else Nnumber,voice,voice mail,tel,email123,Y,N,Y,N,Y324,N,Y,N,N,N345,N,N,N,N,Y
Need to use grep and sort for matching records and display Y and N
text processing;sort