Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] weird file format



And Thus Spake Brett Robson <b-robson@example.com> (on Thu, 27 Mar 2003
17:11:36 +0900):

> I've just some html files with weird line delimiters just carriage
> return (hex 0d), no line feed. This stuff has come from a Web "Design"
> company, is that perhaps the Mac file format? 

Correct.

Unix -> 0x0a
Mac  -> 0x0d
Doze -> 0x0d 0x0a

> You can probably guess what grep, vi and sed think about these files.
> 
> sed won't pick up CRs, can someone suggest a way of turning these long
> haired hippy files into good old unix format?

Can you not pass the stuff through tr and get it to change CR's into LF's?

-- 
G. Stewart   --   gstewart@example.com -- gstewart@example.com
Registered Linux user #284683
---------------------------------------------------------------
Experience is something you don't get until just after
you need it.

Attachment: pgp00021.pgp
Description: PGP signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links