[NTLUG:Discuss] sed question
jm
jm5379 at gmail.com
Wed Mar 22 13:28:07 CST 2006
hopefully someone here has a good background in sed...
the following is a sample line from a csv file i'm trying to modify using sed:
"ATM","Closed","No","No","ALCATEL 7470","000000000122513","3/22/2006
3:20:00 AM","3/22/2006 3:20:00 AM","LSANCA01","BB3","ASI
WEST","NA","6","2","0",27360,"OC3","ASI","SOFTWARE","","RESET","","","","3/3/2006
2:52:24 PM jw8365 SOFTWARE UPGRADE... 3/22/2006 3:26:51 AM bm1354
Object Card Ser. No. Mktg. Part No. OC3_IR
32050101308 90-4905-3A-00-A Status
Software Generic Bank 1 Ok A24315-H0-58 Bank 2
Current A24315-H0-58 Bootprom Ok A24304-H3-61 Card
Status : Ok Cause of last reboot: Usr Current Fabric
: X MAINT SLOT 6-2 "
that's all one line, in case the mail client breaks it up. i can get
everything i want done except for removing the last double quote at
the end of the line.
sed -e 's/"$//g' dig-pull.csv > dig-pull.modified
does not remove the final ". i'm using GNU sed version 4.1.4 on
mandriva 10.2. is my syntax wrong? is this a bug in this version of
sed? anything else i should consider?
thanks,
joe
--
since this is a gmail account, please verify the mailing list is
included in the reply to addresses
More information about the Discuss
mailing list