Page 1 of 1

files with no-text

Posted: Sat Aug 08, 2015 4:32 am
by nikolas1612
got a number of files. some of them are blank (having no text inside, 0 bytes). Can I somehow identify these files by TP and write a certain phrase inside them?
So far it seems TP doesn't process such files at all.

Is there any way to identify a blank file by perl regex? (\A\z or smth of the kind)? Thanks.

Re: files with no-text

Posted: Tue Aug 11, 2015 1:52 pm
by DataMystic Support
You could use a perl regex of

Code: Select all

^$

Re: files with no-text

Posted: Wed Aug 12, 2015 6:08 pm
by nikolas1612
It doesn't work.
At least in search-&-perlace filter

The project demonstrating that is attached

Re: files with no-text

Posted: Mon Aug 24, 2015 3:19 pm
by DataMystic Support
I've attached a work-around.

Naturally you can disable the prompt when you get it doing what you need.