Avatar of faithless1
faithless1
 asked on

Occurances

Hello,

I'm looking for a to add spaces (before and after) if there is a match by specifying specific words.

example
wentstorenow

output

went store now


I already have a script that takes a file as input, but I'm looking for a way where I can specify words directly on the command line.

Thank you.
Perl

Avatar of undefined
Last Comment
faithless1

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ozo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
faithless1

ASKER
Thanks!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy