HOW TO FIND WHAT DOESNT EXIST?
Posted: Sun Jul 25, 2004 10:10 am
<MY BIGGEST PROBLEM>
Please consider this:
I got 2000 text files, and each of them supposed to have a [[DONE]] tag at the first row, or at the beginning of the file. But sometimes, I forgot to put that "tag" before saving and already mixed it with other different files that I finished for that day before realizing it. It takes me a lot of time and sweat just to look for that text file, I tried the "find files" command, but I cant find which of the 2K files doesnt contain that tag. I've also tried using the regular expressions but I cant create an exact sequence of expressions or syntax.
The "Find Files" command always check every line of a certain file, I think I can fix this problem if only theres an option on which line of a text file should the command will work. I really find it very hard, because I use about 15-20 different tags, most of the time a text file contains 2 or more tags. The [[DONE]] tag only appear once, at the beginning of the file.
Examples of my tags are:
[[DRAWING]]
[[DIAGRAM]]
[[PHOTOGRAPH]]
[[STAMP]]
As you can see, those tags starts with a [[ (double open brakets) and ended with ]] (double closed brakets).
After the [[DONE]] tag I place a control number:
[[DONE]]GT5622363
(No space after the last ])
It also gives me a headache if the supplied control number is wrong and which supposed to be a sequencial (but it doesnt starts with 0, always starts with a certain combinations of number):
1st file of 2000 files: [[DONE]]GT56200363
2nd file of 2000 files: [[DONE]]GT56200364 (...and so on)
The first two letters are always fixed combinations.
Please help me out with this, I would be very greatful.
HELP ME!
Thank You...
Please consider this:
I got 2000 text files, and each of them supposed to have a [[DONE]] tag at the first row, or at the beginning of the file. But sometimes, I forgot to put that "tag" before saving and already mixed it with other different files that I finished for that day before realizing it. It takes me a lot of time and sweat just to look for that text file, I tried the "find files" command, but I cant find which of the 2K files doesnt contain that tag. I've also tried using the regular expressions but I cant create an exact sequence of expressions or syntax.
The "Find Files" command always check every line of a certain file, I think I can fix this problem if only theres an option on which line of a text file should the command will work. I really find it very hard, because I use about 15-20 different tags, most of the time a text file contains 2 or more tags. The [[DONE]] tag only appear once, at the beginning of the file.
Examples of my tags are:
[[DRAWING]]
[[DIAGRAM]]
[[PHOTOGRAPH]]
[[STAMP]]
As you can see, those tags starts with a [[ (double open brakets) and ended with ]] (double closed brakets).
After the [[DONE]] tag I place a control number:
[[DONE]]GT5622363
(No space after the last ])
It also gives me a headache if the supplied control number is wrong and which supposed to be a sequencial (but it doesnt starts with 0, always starts with a certain combinations of number):
1st file of 2000 files: [[DONE]]GT56200363
2nd file of 2000 files: [[DONE]]GT56200364 (...and so on)
The first two letters are always fixed combinations.
Please help me out with this, I would be very greatful.
HELP ME!
Thank You...