Is there a split command in Windows, to split command output? My command is:
split
ipconfig | findstr /i \"Default gateway\" | findstr [0-9] >
ipconfig | findstr /i \"Default gateway\" | findstr [0-9]
there is not exactly a split function, but you can use FOR to accomplish what you want :
FOR
for /f "tokens=2 delims=:" %%i in ('ipconfig ^| findstr /i "Default gateway" ^| findstr [0-9]') do echo %%i