Search found 3 matches
- 20 Aug 2015 19:09
- Forum: DOS Batch Forum
- Topic: Questions on delims in for loop
- Replies: 5
- Views: 3877
Re: Questions on delims in for loop
Thank jeb and foxidrive, you gave clear answers to me.
- 19 Aug 2015 19:24
- Forum: DOS Batch Forum
- Topic: Questions on delims in for loop
- Replies: 5
- Views: 3877
Re: Questions on delims in for loop
Hi keny456789, the main difference is that they split a line at different characters. If you only want to count, then you don't need to use the delim option at all. It's important when you have to look at each line like for /f "delims=:" %%a in (test1.txt) do ( echo %%a ) And in your file...
- 03 Aug 2015 02:38
- Forum: DOS Batch Forum
- Topic: Questions on delims in for loop
- Replies: 5
- Views: 3877
Questions on delims in for loop
The looping codes below deal with text file. for /f "tokens=1 delims=:" %%i in ('findstr /n "^END" %text_file1%') do set count=%%i count line by line untill the line having "END" for /f "delims==" %%a in (%text_file1%) do set lastline=%%a store the lastline st...