by onceayear » Thu Jul 19, 2012 9:46 am
Are you still looking for a solution to this?
I have an approach that is within UltraEdit, that will allow you to determine the line-number on which the number of tabs is a number that is an exception. The steps will be:
Make a copied work-file
Change all tabs to, say, tildes (all 09 becomes 7e) (this is just for visibility)
Delete (Find, and replace-with-nothing) all characters that are not tildes or line-delimiters; not a burdensome task if all you have are digits and decimal points; more of a bother if you do have letters also, but grit your teeth and you will be through it in about 12 minutes; perl at _this_ step would speed things up well, e.g.:
Using Perl for the Engine (not Unix, not UltraEdit):
In the "Find What:" box, put:
[A-Z]
In the "Replace With:" box, have nothing; and then Replace All
... gets rid of all uppercase-letters
In the "Find What:" box, put:
[a-z]
In the "Replace With:" box, have nothing; and then Replace All
... gets rid of all lowercase-letters
... etc. Onward until you get rid of (besides tildes and line-delimiters) whatever is in there.
Then do massive reductions of tildes, say, 50-tildes-plus-line-delimiter becomes line-delimiter; do this 6 times and you will have 1.8 million instances of:
^p and 28-tildes and ^p
and other instances of
^p and not-28-tildes and ^p
Count the instances of ^p and 28-tildes and ^p (call this Y) and then, where X is the number of lines in the file,
X - Y is the number of exceptional lines you must locate.
Then simply do a few searches for instances such as
^p and 29-tildes and ^p
or whatever variations-of-N for "300+N" you might want to check for, until any and all exceptional lines have been located.