Remove first line if blank?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
fantomaster
Posts: 2
Joined: Tue Nov 14, 2006 3:52 pm

Remove first line if blank?

Post by fantomaster »

How can I remove the first line in a text if blank only?
(In pseudo code: CHECK first line IF BLANK delete ELSE skip file)

The included filter "Remove lines" doesn't seem to include this functionality and I couldn't find anything pertinent in the forum.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

Use the Restrict to Lines 1..1, and inside this, a remove blank lines filter.
fantomaster
Posts: 2
Joined: Tue Nov 14, 2006 3:52 pm

Post by fantomaster »

Yes, now you put it that way it's fairly obvious, isn't it? :lol:

Thanks a lot!
Post Reply