On Thu, Oct 28, 2010 at 5:32 PM, Phani Bhushan Tholeti <[email protected]>wrote:

> > On Thu, Oct 28, 2010 at 5:13 PM, Narendra Sisodiya
> > <[email protected]> wrote:
> >>
> >> I have file which has
> >> 10/28-16:29:20.472492 yahoo.com 69.147.76.120:80
> >> 10/28-16:29:20.892151 yahoo.com 192.168.2.13:58803
> >> I want to remove port numbers like this
> >> 10/28-16:29:20.472492 yahoo.com 69.147.76.120
> >> 10/28-16:29:20.892151 yahoo.com 192.168.2.13
> >> Can somebody give me sed command to do it ?
> >
> > Cut command is this. but I want in sed
> > cut -d":" -f1,2,3
> This is confusing.. Can you post sample o/p of what you want?
> Whether you want to remove the port numbers or to print them?
>

I want this..

10/28-16:29:20.472492 yahoo.com 69.147.76.120
10/28-16:29:20.892151 yahoo.com 192.168.2.13





-- 
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to