> I received a bunch of replys with a bunch of different ways of doing this.
> Just like everything else in Unix, there's multiple right ways of getting
> it done.
> I ended up using a combination of the replys
>
> tr -ds "[\n]" "~" variable.input.file | fold -w 80 >
> fixed.output file
>
> Thanks to
> Sanjaya Srivastava [mailto:Sanjaya.Srivastava@Eng.Sun.COM]
> Jason Armbruster [mailto:jason.armbruster@cusys.edu]
> David Evans [mailto:daevans@us.oracle.com]
> Richard Lathom [mailto:fzyd6w@loa.lad.gmeds.com]
>
>
> -----Original Message-----
> One of my users wants to take a file of variable length records (between
> 10 and approx 250 columns) and create a new file of fixed 80 column
> records with a tilde(~) between the old records. This is required by the
> remote site they are going to ftp the file to. I figure there just has to
> be a a one-line sed/awk/something to do this. Any takers ?
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:10 CDT