3

Grep question

view full story
linux-howto

http://www.unix.com – Guys, I'm a newbie for UNIX. I want to grep the last characters after the last "-" sign. eg: abcd-231-1-44 abcd-2341-22-55 abcd-1-23-6 In the above example. I want to grep just the last characters after the 3rd "-" sign. line1 it will be 44. line2 55 and line3 6 TIA (HowTos)