Re: Fixing line endings
Re: Fixing line endings
- Subject: Re: Fixing line endings
- From: Derek Wyatt <email@hidden>
- Date: Fri, 30 Mar 2007 13:52:23 -0400
Sounds like a quick job for perl to me:
perl -ne 's/\r\n/\n/g; s/\r/\n/g; print;' < {yourfile} > {newfile}
Regs,
D
I'm working on cleaning up the codebase that I'm working on. It's a
rather incredible mess of line endings: CR, LF, CR/LF, and even LF/CR
in a few places, sometimes mixed within a single file. Can anyone
suggest a program or script that would normalize things? It would
need to be selective in which files it modifies, since the source code
directories also contain binary files and data files that require a
specific type of line ending.
Derek Wyatt
http://derekwyatt.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden