> 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?
-- Lots o' Luv, Phani Bhushan Let not your sense of morals prevent you from doing what is right - Isaac Asimov (Salvor Hardin in Foundation and Empire) Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -- l...@iitd - http://tinyurl.com/ycueutm
