• 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: How todo greep on many file in Run Script phase ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How todo greep on many file in Run Script phase ?


  • Subject: Re: How todo greep on many file in Run Script phase ?
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 7 Jul 2006 18:41:30 -0700

On Jul 7, 2006, at 4:29 PM, Ruslan Zasukhin wrote:

Hi guys!


I was not able find way to do such simple task as can do CW, Bbedit or xcode

in the dialogs find/replace.


    I need automate in Run Script operation to find in files of some folder

    some simple regex _expression_, and replace it on empty line.


The OS X command line utility greep allow only do search,

but now way todo REPLACE as far as I see.


Anybody know how to solve this task ?


If you want to find and replace a regular _expression_ across multiple files in a project, use the Project Find menu item.

If you need to automate finding and replacing across multiple projects, you can write a custom user script:  http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/07_03_custom_scripts/chapter_48_section_3.html

The script can be written in shell language, Perl, or even use AppleScript to automate Xcode.  All of these script languages can do search and replace on individual files in the project.

Chris
 _______________________________________________
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: 
 >How todo greep on many file in Run Script phase ? (From: Ruslan Zasukhin <email@hidden>)

  • Prev by Date: Re: Xcode template for daemons?
  • Next by Date: Re: How todo greep on many file in Run Script phase ?
  • Previous by thread: Re: How todo greep on many file in Run Script phase ?
  • Next by thread: Re: How todo greep on many file in Run Script phase ?
  • Index(es):
    • Date
    • Thread