* SUMMARY: File with 1 very long line
@ 2004-02-18 9:36 Werner.Rost
0 siblings, 0 replies; only message in thread
From: Werner.Rost @ 2004-02-18 9:36 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-18 9:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-18 9:36 SUMMARY: File with 1 very long line Werner.Rost
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox