From: Werner.Rost@zf.com
Subject: SUMMARY: File with 1 very long line
Date: Wed, 18 Feb 2004 10:36:32 +0100 [thread overview]
Message-ID: <923B59E7C539B94FAD82D0D375B69CDA02E96B3D@BNNS00001> (raw)
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.
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ß/Yours sincerely
Werner Rost
GM-FIR - Netzwerk
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
-----Ursprüngliche Nachricht-----
Von: Werner.Rost@zf.com [mailto:Werner.Rost@zf.com]
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ß/Yours sincerely
Werner Rost
GM-FIR - Netzwerk
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
reply other threads:[~2004-02-18 9:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox