[lug] quick sed question

charles at lunarmedia.net charles at lunarmedia.net
Wed Feb 21 16:48:07 MST 2001


is there a sed expression that can parse just 'chg' from the following:

        core1.chg-confg

and do it in one sed execution? the best i can do is:

        echo core1.chg-confg | sed -e 's/.*\.//g' | sed -e 's/-.*//g'

is there shorter way?

thanks -cjm




More information about the LUG mailing list