1751854 Members
5605 Online
108782 Solutions
New Discussion юеВ

SED

 
SOLVED
Go to solution
Matt Dunfee
Occasional Contributor

SED

I have a file similar to the following:

server1_342342319,
server2_342452354,
server3_483924432,

I need to be able to manipulate this file so that the "," is removed. I believe the 'sed' utility will do this, but I'm not familiar enough with this command.

Any help is greatly appreciated.
-Matt
3 REPLIES 3
Craig Rants
Honored Contributor
Solution

Re: SED

This should work for you

sed 's/,//g' filename

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
James R. Ferguson
Acclaimed Contributor

Re: SED

Hi Matt:

You can do this:

# cat myfile|tr -d ","

Regards!

...JRF...
Matt Dunfee
Occasional Contributor

Re: SED

That worked.
I figured it'd be simple.
Thanks!!