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:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Wed, 27 Jan 1999 13:57:00 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
Lane Rollins writes:
>
> 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?

Certainly:

        awk ' {print $0 "\r"}' /OLD/FILE/PATH >/NEW/BYTESTREAM/FILE

For each record that awk reads from /OLD/FILE/PATH, the entire record is stored
in the $0 variable, and then printed with a CR ("\r") appended.
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2