help with grep

Hi Folks,

I want to find the lines ending with ".4ge" among a set of lines.

Can you provide reex for this. I want to use grep in a piping.

I tried this ,but not working..
/usr/sbin/swlist -l file @ /bstb_rep/apps/pkg/AP_402136 | grep '^.*\.4ge$'

Cheers,
Hashin

Try:

/usr/sbin/swlist -l file @ /bstb_rep/apps/pkg/AP_402136 | grep '\.4ge$'

Regards

Maybe spaces at end of line ? Try :

/usr/sbin/swlist -l file @ /bstb_rep/apps/pkg/AP_402136 | grep  '\.4ge[[:space:]]$'

Jean-Pierre.

i think this one will provide an accurate reading as stated a few posts up
as long as your wanting the .4get to be at the end of the word

/usr/sbin/swlist -l file @ /bstb_rep/apps/pkg/AP_402136 | grep '\.4ge$'