how to write a batch file which can identify value from a text file and store that value in some other text file -


i have text file have number content , string content,i want write batch can identify number content , store number content each line in other text file.

this example work integer numbers between spaces.

special caution must put in text file, behaviour ", <, |, > , & may unpredictable.

some optimizations may made having more information text file.

for /f "tokens=*" %%i in (textfile.txt) call :getnumber %%i goto :eof  :getnumber if "%~1"=="" goto :eof set number= set /a "number=1*%~1" if "%number%" == "%~1" call :storenumber %number% shift goto :getnumber  :storenumber echo %number%>number.txt 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -