Pick a string not whole the line containing that string..Help!

  • Thread starter Thread starter Networkingkool
  • Start date Start date
N

Networkingkool

Hi everybody, I am new to this forum. Now I have a trouble and need your helps.
For example: I have a text file (text.txt) containg string : "aaaaaaaaaaaaaa computer adsfjasldkfjasjflk asdlfkjwoeifj 12345"
My Object is to use command line to output only string "12345"
I tried to use command findstr "[1-9]$" C:\123\text.txt. The output of command is exactly the whole line containing the string "12345" not
the string "12345" as I want.
Anyone have better idea?
Thank for any suggest.

Continue reading...
 
Back
Top