How to find strings w/ fixed chracter and var

March 2, 2011 at 06:40:19
Specs: Windows XP
I want to search for multiple strings containing a fixed character and variables and transfer it to another file. Example of strings: A1234501, B1234502, C1234503, D1234504..etc.
The first and last two characters are variables and 12345 is fixed. Can someone help me to do
this in batch file. Thank you in advance.

See More: How to find strings w/ fixed chracter and var

Report •


#1
March 2, 2011 at 09:17:25
findstr ".12345.." myfile > newfile


=====================================
Life is too important to be taken seriously.

M2


Report •

#2
March 2, 2011 at 17:09:23
Thank you it works but it contains all the strings in that specific line. Can you help me to separate that strings. I want only the exact string. Sorry i'm just a newbie in batch file. Thanks again in advance.

Report •

#3
March 2, 2011 at 19:30:56
Do you want these?

A1234501
B1234502
C1234503
D1234504


=====================================
Life is too important to be taken seriously.

M2


Report •

Related Solutions

#4
March 2, 2011 at 22:21:01
yes. i dont want to include strings other than
A1234501
B1234502
C1234503
D1234504

Report •


Ask Question