Hi,
I want to remove all the digits/characters after the last underscore in the following set of lines
abc_cdef_12_456_98765
defs_qw_4567_23_0877_89976769870
deffon_asdcdc_23_980980_098
sdfre_rtt_grt
the result im expecting is
abc_cdef_12_456
defs_qw_4567_23_0877
deffon_asdcdc_23
sdfre_rtt
I want to know inside VI editor what pattern replacement can be used to perform the above operation.
Pl. note no.of underscores are different. After underscore any thing can come, say , character or digit!:rolleyes:
Thanks in advance!!!
Appu