On Wed, Sep 26, 2007 at 05:11:32PM +0800, Deeþan Chakravarthy wrote: > $sed -e "s|foo|/bar|g" foo > > The above command works fine. You can use any character as delimiter. I > chose to use | .
My favourite alternative to / is comma, it doesn't need you to hit shift and you are not often searching for it. Quiz. 1. what words from /usr/share/dict/words are valid sed expressions? syzygy is one! 2. craft a sed expression to search for valid sed expressions from /usr/share/dict/words Matt -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html