perl - How to modify a single separator in between the text -


hello: looking modify 1 separator in between following text either awk, perl or sed

a,b,c,d,e,f,g,,,,k,l,m  

to output

a,b,c,d,e-f,g,,,,k,l,m 

how modify nth separator ? in advance

you can use sed,

sed 's/,/-/5' yourfile 

Comments

Popular posts from this blog

python 2.7 - Chat Solution for Mobile App -

jquery - Detect current Section with javascript -