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