Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Trying to get the 3rd match and add line break

$
0
0

I have a text file all in one line, for example:

a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.

 

That I want for every 3rd match for a period to do a line break so it will look like:

a.b.c.

d.e.f.

g.h.i.

j.k.l.

m.n.o.

 

any taught if I can do this in powershell?

 

Thanks in advance, 

Rishi

 


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images