On Tue, 17 Sep 2002, Ashwin Khandare wrote:
> file abc.txt contains
> Sep 15 14:18:54 203.146.91.228:23 202.88.143.72:23
> 
> The time 14:18:54 (hours:mins:secs) needs to be replaced by 14:18 (hours:mins) for 
>"n" number of lines in a file

Seems to me that: 

$ cut -c1-12,16-255 file.txt >file2.txt

would work better.

Later,
Steven



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to