Search found 4 matches

by dust
18 Jun 2010 03:17
Forum: DOS Batch Forum
Topic: Filter out a line that is too long from a txt file...
Replies: 8
Views: 9570

Re: Filter out a line that is too long from a txt file...

This will definitely cull any line longer than 24 characters? yes, and this reject any line shorter than 25 characters: >new.txt findstr /br "........................." old.txt Thank you amel27 - this helped a lot and solved my problem right away. Good Stuffffffff!!!! regards, dust
by dust
18 Jun 2010 02:23
Forum: DOS Batch Forum
Topic: Filter out a line that is too long from a txt file...
Replies: 8
Views: 9570

Re: Filter out a line that is too long from a txt file...

Hi Everyone, my apologies - I was just being too stupid.... mixed up the "oldfile - newfile" anyways. I went with the code from amel27. >new.txt findstr /vbr "........................." old.txt seems to be doing the job nicely - thank you amel. This will definitely cull any line ...
by dust
18 Jun 2010 02:07
Forum: DOS Batch Forum
Topic: Filter out a line that is too long from a txt file...
Replies: 8
Views: 9570

Re: Filter out a line that is too long from a txt file...

Hello,
thank you everyone for your replies this is much
appreciated.
However if I put these lines into my batch file it deletes every single line
that is in the original text file...
I dont know much about batch files - any help will be highly appreciated.

Thank you

dust
by dust
17 Jun 2010 10:02
Forum: DOS Batch Forum
Topic: Filter out a line that is too long from a txt file...
Replies: 8
Views: 9570

Filter out a line that is too long from a txt file...

Hello, How can I filter out a line that is too long from a text file? The maximum length each line should be is 24 characters. Every line longer than that should be deleted. Here is a extract from the text file: K# 331 20100616 06:23:47 E# 73 20100616 06:56:06 B# 123 20100616 07:09:04 D# 122 2010061...