Languages and Scripting

sed delete character question?

 
SOLVED
Go to solution
rmueller58
Valued Contributor

sed delete character question?

Have a delimited file,
emailname@domain.tld,Full Name,09/23/2010,,62,

Would like to delete ' ', after (date,) and before 62

can someone give me a sed or perl oneliner?
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: sed delete character question?

If the ',,' after the date is the only one on the line then:

sed 's/,,/,/' filename > newfilename

should do what you want.
rmueller58
Valued Contributor

Re: sed delete character question?

that's it patrick.
Steven Schweda
Honored Contributor

Re: sed delete character question?

> Would like to delete ' ', after (date,) and before 62

Huh? Actual before and after strings might
be clearer than that description.
rmueller58
Valued Contributor

Re: sed delete character question?

My brain was vacate.. Thanks!!