HP3000-L Archives

January 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lane Rollins <[log in to unmask]>
Reply To:
Lane Rollins <[log in to unmask]>
Date:
Thu, 28 Jan 1999 13:43:50 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
> Lane wrote...
>>We have a need to generate files that a PC can get using Samba. The vendors
>>program REALLY wants both CR & LF at the end of each line, not just the LF
>>that tobyte puts. Is there any quick and easy way to do this with standard
>>utilities?
>
> You might try the following to add or remove CR's...
>
>  shell/iX: /bin/awk '{print $0 "\r"}' < posixfile > dosfile
>
>  shell/iX: /bin/tr -d '\015' < dosfile > posixfile
>
> Lars "YMMV" Appel.

I found the 'tr' command at the Samba/ix web site, but the 'awk' incantation
is missing.

One more silly question while we're on this subject. Are there any tricks to
get frombyte to generate a file other then 80 characters wide? I need
something like 286 characters wide fixed record file.

Once again, thanks for all the help.

Lane

ATOM RSS1 RSS2