On Fri, Jan 26, 2007 at 12:13:49PM +1100, Alex Samad wrote: > On Fri, Jan 26, 2007 at 12:05:06PM +1100, Luke Yelavich wrote: > > On Fri, Jan 26, 2007 at 11:36:10AM EST, Alex Samad wrote: > > > sed -e 's/ +"/"/' oldfile > newfile > > > > It seems that changing the + to an * did the trick. Thanks. > strange > > the above should work for > > test " => test" > > and shouldn't do anything for > > test" => test" > > I tried some tests your right, but when I escaped out the + so it looks like > > sed -e '/s/ \+"/"/' > > will have to investigate later
some more test with perl [EMAIL PROTECTED]:~$ echo 'test "' | perl -pe 's/ \+"/"/' test " [EMAIL PROTECTED]:~$ echo 'test "' | perl -pe 's/ +"/"/' test" so sed is doing something with the + > > > > -- > > Luke Yelavich > > GPG key: 0xD06320CE > > (http://www.themuso.com/themuso-gpg-key.txt) > > Email & MSN: [EMAIL PROTECTED] > > Jabber: [EMAIL PROTECTED] > > > > > -- > > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
signature.asc
Description: Digital signature
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
