shell scripting to determine special chars in file

Hi,

I need all your help to achieve the below functionality.

I have a big 2 GB file and inside the file we need to identify, whether having a comma(,) or pipe(|) or tab or fixed position or semicolon(:wink: delimiter. If any of those delimiter found need to replace the file with pipe(|) delimiter. Also not sure the columns limits in the file.

Thanks in advance

Here is a start

cat <file.typ> | sed -e 's/[,; ]/\|/g'
                                          the character after the semicolon is a tab