- Joined
- Oct 3, 2011
I have a text file that I filtered to get a number and have only one line left in the text file
"test.txt:3: text2.txt:258:Raw Value : 39,716"
I want to take the last number which In this case is "39,716" and need to use is as a variable such as if larger then 20,000 go to X
but I am getting a false reading due to the first 35 chars,
so in windows through a command line or power shell (or something that can be scripted) I want to remove "test.txt:3: text2.txt:258:Raw Value : " and only leave "39,716" (or have cmd or PowerShell read the last number and create a new text file with the number inside
note 39,716 is a variable based on output of a larger output of a text file
thx
"test.txt:3: text2.txt:258:Raw Value : 39,716"
I want to take the last number which In this case is "39,716" and need to use is as a variable such as if larger then 20,000 go to X
but I am getting a false reading due to the first 35 chars,
so in windows through a command line or power shell (or something that can be scripted) I want to remove "test.txt:3: text2.txt:258:Raw Value : " and only leave "39,716" (or have cmd or PowerShell read the last number and create a new text file with the number inside
note 39,716 is a variable based on output of a larger output of a text file
thx