ddrew78 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I have a file that looks like this:
What I need to do is get rid of the comma at the end. I tried using sed, like this:(3.3.3.3,4.4.4.4,)
but, instead of giving mesystem "sed 's/,)/)/' pbxiplp > pbxiplp1";
, it just removes everything within the file. Any ideas? I've used 'sed' plenty in the past, but have never run into this before. The file will always only contain one line.(3.3.3.3,4.4.4.4)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sed deleting file
by johngg (Canon) on Dec 06, 2010 at 17:26 UTC | |
Re: sed deleting file
by Fletch (Bishop) on Dec 06, 2010 at 17:21 UTC | |
Re: sed deleting file
by Your Mother (Archbishop) on Dec 06, 2010 at 17:23 UTC | |
Re: sed deleting file
by roboticus (Chancellor) on Dec 06, 2010 at 16:43 UTC | |
by ddrew78 (Beadle) on Dec 06, 2010 at 16:48 UTC | |
Re: sed deleting file
by snoopy (Curate) on Dec 06, 2010 at 20:59 UTC | |
Re: sed deleting file
by JavaFan (Canon) on Dec 06, 2010 at 19:42 UTC | |
Re: sed deleting file
by choroba (Cardinal) on Dec 06, 2010 at 16:42 UTC | |
by ddrew78 (Beadle) on Dec 06, 2010 at 16:43 UTC | |
Re: sed deleting file
by choroba (Cardinal) on Dec 06, 2010 at 16:55 UTC | |
by ddrew78 (Beadle) on Dec 06, 2010 at 17:07 UTC | |
Re: sed deleting file
by cdarke (Prior) on Dec 07, 2010 at 13:05 UTC |
Back to
Seekers of Perl Wisdom