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:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Wed, 27 Jan 1999 22:49:57 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (14 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.

ATOM RSS1 RSS2