Jump to content

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


Recommended Posts

Guest Networkingkool
Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...