On Thu, Oct 28, 2010 at 6:04 PM, Shakthi Kannan <[email protected]>wrote:
> Hi, > > --- 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 > | Can somebody give me sed command to do it ? > \-- > > Try: > > sed 's/:[0-9]*$//' input.txt > > Thanks It is working, I have doing something wrong with regular expression -- ┌─────────────────────────┐ │ Narendra Sisodiya │ http://narendrasisodiya.com └─────────────────────────┘ -- l...@iitd - http://tinyurl.com/ycueutm
