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)