Insert filename in each text file

Tool for Search and Replace across multiple files.
stekar
Posts: 2
Joined: Fri Dec 27, 2013 9:23 pm

Insert filename in each text file

Post by stekar »

Hi, I need to insert the name of the file in a certain spot in hundreds of .txt files.
For a start I need it placed at the beginning of each file: \A
Is there some way of substituting \A with some expression that will insert the filename?
Thank you.
stekar
Posts: 2
Joined: Fri Dec 27, 2013 9:23 pm

Re: Insert filename in each text file

Post by stekar »

I just found an negative answer from 2011 in the RegEx forum:
Postby DV » Thu Apr 14, 2011 8:32 pm
Sorry- no way to use the filename in the replace expression at the minute.
Something to consider for future versions though. Thanks!
Does it still apply?
User avatar
DigitalVolcano
Site Admin
Posts: 1866
Joined: Thu Jun 09, 2011 10:04 am

Re: Insert filename in each text file

Post by DigitalVolcano »

This feature is not currently implemented - It is on the wishlist though, and under consideration for version 3.
Post Reply