[lug] quick sed question
John Hernandez
John.Hernandez at noaa.gov
Wed Feb 21 17:06:10 MST 2001
sed -e 's/.*\.\(.*\)-.*/\1/g'
charles at lunarmedia.net wrote:
>
> 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
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list