files with no-text

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

nikolas1612
Posts: 22
Joined: Tue May 12, 2015 3:57 am

files with no-text

Postby nikolas1612 » Sat Aug 08, 2015 4:32 am

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.

User avatar
DataMystic Support
Site Admin
Posts: 2154
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: files with no-text

Postby DataMystic Support » Tue Aug 11, 2015 1:52 pm

You could use a perl regex of

Code: Select all

^$
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

nikolas1612
Posts: 22
Joined: Tue May 12, 2015 3:57 am

Re: files with no-text

Postby nikolas1612 » Wed Aug 12, 2015 6:08 pm

It doesn't work.
At least in search-&-perlace filter

The project demonstrating that is attached
Attachments
no-text.rar
(516 Bytes) Downloaded 482 times

User avatar
DataMystic Support
Site Admin
Posts: 2154
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: files with no-text

Postby DataMystic Support » Mon Aug 24, 2015 3:19 pm

I've attached a work-around.

Naturally you can disable the prompt when you get it doing what you need.
Attachments
detect empty file.zip
(747 Bytes) Downloaded 172 times
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 1 guest