Insert date

Tool for Search and Replace across multiple files.
Post Reply
ebulerdo
Posts: 18
Joined: Mon Dec 09, 2013 8:54 am

Insert date

Post by ebulerdo »

Good morning!

I need to search for certain text (e.g. %date%) and replace it with the current date. Is there a way to do that in TextCrawler?
Thanks!
User avatar
DigitalVolcano
Site Admin
Posts: 1755
Joined: Thu Jun 09, 2011 10:04 am

Re: Insert date

Post by DigitalVolcano »

Sorry, there isn't currently a function to automatically insert today's date. You'd have to enter the date manually into the replace expression.
ebulerdo
Posts: 18
Joined: Mon Dec 09, 2013 8:54 am

Re: Insert date

Post by ebulerdo »

Thanks for the reply.

I thought of a possibility: In the Standard tab there is an option to replace any text with the filename. It would be easy to name the file as the current date and use that function to replace %date% by the filename, which would do what I need. But I have no idea of how to call that function from the command-line as I do with batch replaces saved as .txc. I guess it isn't possible to do that, is it?

Thanks!
User avatar
DigitalVolcano
Site Admin
Posts: 1755
Joined: Thu Jun 09, 2011 10:04 am

Re: Insert date

Post by DigitalVolcano »

The 'replace with filename' command is availble in the batch processor - check the dropdown next to replace.
ebulerdo
Posts: 18
Joined: Mon Dec 09, 2013 8:54 am

Re: Insert date

Post by ebulerdo »

Thanks, problem solved!
Post Reply