From mark@ispc001.demon.co.uk Sun Oct 6 23:54:00 1996 From: mark@ispc001.demon.co.uk (Mark Katz) Subject: Re: What....Another question? Distribution: inet Message-ID: <844634547snz@ispc001.demon.co.uk> References: <538d8a$64l@herald.concentric.net> Date: Sun, 06 Oct 96 20:42:27 GMT Organization: ISPC Ltd Reply-To: Mark@ispc001.demon.co.uk X-Newsreader: Demon Internet Simple News v1.30 Lines: 22 Path: fu-berlin.de!news.mathworks.com!howland.erols.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!mail2news.demon.co.uk!ispc001.demon.co.uk!mark Newsgroups: comp.editors X-NNTP-Posting-User: mark@ispc001.demon.co.uk X-Mail2News-Path: news.demon.net!ispc001.demon.co.uk In article <538d8a$64l@herald.concentric.net> jdespres@concentric.net "Joe Despres" writes: >Question: How would one delete all characters beyond the 80 character >mark on a line using SED? I know how to do it with "cut" & "fold". >But I would like to do it with SED. Can it be done with Awk as well? > >Thank you!!!!!....... > >Joe Despres jdespres@concentric.net > > In awk awk '{print substr($0,1,80)}' input-file > output-file Mark -- Mark Katz ISPC, London - Innovation in data-delivery tools Tel: (44) 181-455 4665, Fax (44) 181-458 9554 ** Visit our website on www.efiche.com/efiche ** >