Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> OS >> Windows >> Command Line >> For >> How to use FOR to process each line in a text file

------------------------------------------------------------ extract space separated words ------------------------------------------------------------ eg. servers.txt contains list of servers, one per line For running from command prompt > FOR /F "tokens=1 delims= " %i in (servers.txt) do echo %i For running from batch file > FOR /F "tokens=1 delims= " %%i in (servers.txt) do echo %%i ------------------------------------------------------------ To extract the entire phrase in a line (incl of spaces) for /F "tokens=1 delims=*" %a in (file.txt) do echo %a for /F "tokens=1 delims=*" %%a in (file.txt) do echo %a
[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]