Replace after nth occurence
Hi,
I need some help with following: I have a file wich contains the following: 123;345;456;335;234;244;245;2345;234;234;345; There are 11 semicolons in this, I would like to have an output where after the 8th semicolon all semicolons are replaced by space (" ") so the output will be: 123;345;456;335;234;244;245;2345;234 234 345 I tried some sed functions, but could not execute the proper command. Hope you can help me out. Thanks. Sampat |
would be nice to know what did you really try.
Probably you need to check the gnu sed (instead of the non-gnu version) it has some interesting extension. |
It's a little complicated in sed but easier in perl. Either way, can you show what you have tried so far so we can see where you need help?
|
Most easy with a loop
Code:
sed ' |
All times are GMT -5. The time now is 08:17 AM. |