Replacing multiple bar (special char) with tab using SED
Posted
by neversaint
on Stack Overflow
See other posts from Stack Overflow
or by neversaint
Published on 2010-04-12T01:37:07Z
Indexed on
2010/04/12
1:43 UTC
Read the original article
Hit count: 254
I have a string like this
BRADI5G20430|BRADI5G20430.1||1
How can I replace the bar (single and multiple) with tab ("\t")? I tried this but dont' work
sed 's/\|+/\t/g'
I also want to include this line in bash script.
© Stack Overflow or respective owner