0
votes
1answer
180 views

Find and replace from Terminal and write to a new file with the replaced values

I have a file template.jou that has the following format: /codeline1 /codeline2 /var = var /codeline3 Now I want to replace the var part with different values like A, B and C and then write the ...
2
votes
2answers
1k views

Textmate: regular expression to replace matches preserving case?

How can I use a single search / replace to replace all words town with village preserving the case of the first letter in this sentence: Towns are small cities. I live in a town.
1
vote
2answers
1k views

command line find/replace help

I've got a set of 5000+ files that I need to do a simple search and replace in. I have been doing it in a text editor (EditPlus) by opening 500 files at a time, doing a global search/replace, saving ...
0
votes
2answers
68 views

Replace “Month Date Time” formatted dates with “Month Year Date Time” formatted dates in multiple files

I have some files in a directory that contain dates that are formatted like: December 29 19:05:58 But they differ referring to the date that the file was created. Is there any way to do a ...
1
vote
1answer
507 views

How to replace every text in a Mac folder?

In Mac OS, how do I find and replace a certain text in all of a directory and its sub directories?