I'm using netstat and lsof

`netstat -ap | grep java`;
[download]

Output

tcp 0 0 *:bpjava *:* LISTEN -
[download]

Now $var4 = *:bpjava.

How do I keep only the : and anything after the :?

I can just take the * away but for safety in case it contains any other stuff I want to make sure it keeps only :name

Going to use it with lsof -i :bpjava

and lsof -i *:bpjava doesn't work