SUMMARY: File with 1 very long line

From: Werner.Rost@zf.com
Date: Wed Feb 18 2004 - 04:36:32 EST


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
 
 



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:51 EDT