![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
sed deleting fileby ddrew78 (Beadle) |
on Dec 06, 2010 at 16:38 UTC ( #875648=perlquestion: print w/replies, xml ) | Need Help?? |
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: but, instead of giving me , 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.
Back to
Seekers of Perl Wisdom
|
|