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

where input.txt is your input file.

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

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

Reply via email to