I need to identify the postion of a character in string using grep command.Example, the string is RAMSITALSKHMAN|1223333.grep -n '[^a-zA-Z0-9\$\~\%\#\^]'How do I find the position of | in the given string?
How to find a position of a character using grep?
text processing;grep;string