• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fixing line endings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing line endings


  • Subject: Re: Fixing line endings
  • From: Peter Schart <email@hidden>
  • Date: Fri, 30 Mar 2007 14:18:32 -0500

Sounds like a quick job for perl to me:

perl -ne 's/\r\n/\n/g; s/\r/\n/g; print;' < {yourfile} > {newfile}

Or just a *bit* quicker (that's what perl's all about, right? ;) of a job:


perl -ne 's/\r\n?/\n/g; print;' < {yourfile} > {newfile}

pete

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: Fixing line endings (From: Derek Wyatt <email@hidden>)

  • Prev by Date: Mixing Objective C and C++
  • Next by Date: Hiding Symbols in Static Libraries
  • Previous by thread: Re: Fixing line endings
  • Next by thread: Xcode's documentation updates notifier stopped working
  • Index(es):
    • Date
    • Thread