Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR BASIC

dos/cmd equivalent to "head"

C:> netstat -an > temp.txt && for /l %l in (1,1,10) do @for /f "tokens=1,2* delims=:" %a in ('findstr /n /r "^" temp.txt ^| findstr /r "^%l:"') do @echo %b
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #equivalent
ADD COMMENT
Topic
Name
7+9 =