Re: Comment a block
Re: Comment a block
- Subject: Re: Comment a block
- From: Dave Carrigan <email@hidden>
- Date: Thu, 2 Sep 2010 16:13:45 -0700
On Sep 2, 2010, at 3:34 PM, Ken Thomases wrote:
> On Sep 2, 2010, at 5:25 PM, David Blanton wrote:
>
>> How does one force a file to be saved with proper (preference value) line endings?
>
> You can use Xcode's Get Info command on the file and set the line ending there. It might help to cycle through the options to make sure it's been changed and then changed back.
>
> Also, you can use the free TextWrangler editor to adjust a file's line endings. It's a little more obvious/clear in that GUI. There's Edit > Document Options to set (or just check) the line endings used and Text > Normalize Line Endings to force them to that standard.
A quick perl one-liner will do it:
perl -pi.bak -e 's/\r*$/\r/' filename1 filename2 ...
If it screws up, the old file will be there with a .bak extension.
--
Dave Carrigan
email@hidden
Seattle, WA, USA
_______________________________________________
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