From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Werner.Rost@zf.com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: File with 1 very long line Date: Wed, 18 Feb 2004 10:36:32 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <923B59E7C539B94FAD82D0D375B69CDA02E96B3D@BNNS00001> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1077097034 18442 80.91.224.253 (18 Feb 2004 09:37:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2004 09:37:14 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Feb 18 10:37:08 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AtO8i-0002w7-00 for ; Wed, 18 Feb 2004 10:37:08 +0100 Original-Received: (qmail 20915 invoked by uid 5); 18 Feb 2004 09:36:27 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 20900 invoked by uid 49493); 18 Feb 2004 09:36:26 -0000 Original-Received: from Werner.Rost@zf.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-1.5/5.0):. Processed in 1.759318 secs); 18 Feb 2004 09:36:26 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 18 Feb 2004 09:36:24 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HT900JDXXCKD7@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 18 Feb 2004 04:36:23 -0500 (EST) Original-Received: from mxger02.zf.com (mxger02.zf.com [192.77.114.176]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HT90063KXCE95@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 18 Feb 2004 04:36:15 -0500 (EST) Original-Received: from bnns00001.zfbn.zf-group.de (boge [10.23.4.168]) by mxger02.zf.com (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id i1I9a8617900 for ; Wed, 18 Feb 2004 10:36:08 +0100 Original-Received: by BNNS00001 with Internet Mail Service (5.5.2653.19) id ; Wed, 18 Feb 2004 10:36:33 +0100 Content-return: allowed Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:6459 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6459 I got 2 answers quite immediately. Thanks al lot to Smith, Lawrie [Lawrie.Smith@capita.co.uk] - first anwser Tim Cutts [tjrc@sanger.ac.uk] - the winner Lawrie a script for korn93 which I should download from http://www.kornshell.com/ and install.=20 Much easier is the solution of Tim: There is a command "fold" which = does exactly the job I want: fold -w80 inputfile >outputfile Thanks al lot guys. This list is great. Mit freundlichem Gru=DF/Yours sincerely Werner Rost GM-FIR - Netzwerk =20 ZF Boge Elastmetall GmbH Friesdorfer Str. 175, 53175 Bonn, Deutschland/Germany Telefon/Phone +49 228 3825 - 420, Telefax/Fax +49 228 3825 - 398 werner.rost@zf.com =20 =20 -----Urspr=FCngliche Nachricht----- Von: Werner.Rost@zf.com [mailto:Werner.Rost@zf.com]=20 Gesendet: Mittwoch, 18. Februar 2004 09:56 An: tru64-unix-managers@ornl.gov Betreff: File with 1 very long line Hi admins, I am sure you can give me some hints. An application created a file with one line which is very long. The = user wants to split these line into shorter ones (say 80 characters). I = guuess I must insert linefeed character behind each 80th character, right? How can I do this? Thanks in advance. Mit freundlichem Gru=DF/Yours sincerely Werner Rost GM-FIR - Netzwerk =20 ZF Boge Elastmetall GmbH Friesdorfer Str. 175, 53175 Bonn, Deutschland/Germany Telefon/Phone +49 = 228 3825 - 420, Telefax/Fax +49 228 3825 - 398 werner.rost@zf.com =20 =20