Help needed with file output awk sed command - please

Hi I have a file that contains lines starting with a particular string plus a Colon: I need to output all these lines but only what comes after the colon

Can you pelase assist?

Example of lines in the file:

 com.ubs.f35.cashequities/cashequities: 1 2 
 com.ubs.f35.cashequities/cashequities: 3 4 
 com.ubs.f35.cashequities/cashequities:  5 6

Need the following done:

1 - Extract all lines starting with from file ( I can do with a grep )

     com.ubs.f35.cashequities/cashequities:

2 - Only print what comes after the colon :
So the result would be

1 2
3 4
5 6

try..

 awk -F: '/^ com.ubs.f35.cashequities\/cashequities/{print $2}' filename

after your grep | awk -F: '{print $NF}'

Try like...

awk -F":" '{print $2}' test1.txt

With sed:

sed -n 's/^com\.ubs\.f35\.cashequities\/cashequities: *//p' <file

--
Bye

hi try this tooo .....

awk -F: '{print $2}' 1.pl

Thanks
Anu