0

I want to change Copyright text to a specific text in all the existing files I have found an answer of this at -- Batch replace copyright comment in XCode

But Unfortunately, the download does not exist now. Could anyone provide me the script or any other method?

Community
  • 1
  • 1
john fedric
  • 167
  • 1
  • 11
  • possible duplicate of [Can I search/replace in multiple .txt files quickly from Terminal?](http://stackoverflow.com/questions/11895169/can-i-search-replace-in-multiple-txt-files-quickly-from-terminal) – Shai Jan 06 '15 at 09:17
  • @Shai Could you provide a more closer answer, as i have not much experience on sed,grep commands.. – john fedric Jan 06 '15 at 09:22
  • @Shai i think we need to identify -- All lines at the beginning of file that starts with // (commented lines) and replace them with /* text_info */ in Xcode – john fedric Jan 06 '15 at 09:25
  • if you want to batch replace text in multiple files, use sed as mentioned above sed -i '.bak' 's/old copyright text/new copyright text/g' *.h – Shai Jan 06 '15 at 09:27
  • @Shai Copyright text is not fixed in every file.. – john fedric Jan 06 '15 at 09:28
  • Ahh I see... oh well, you'll need to find a more complex solution then :-) – Shai Jan 06 '15 at 09:29
  • @Shai You marked it as a duplicate and i think that's why no one provided any answers..Could you please remove that? – john fedric Jan 08 '15 at 09:04
  • won't change much but sure... – Shai Jan 08 '15 at 09:07

0 Answers0