ipconfig's output.grep converts output to unix format and now need to be switched back to dos format to make the log file easier to read with default windows notepad:set path=%path%;%~dp0
ipconfig -all | grep -v "^$" | awk "{ sub("""\r$""", """"""); print }">> output.loggrep -v "^$" - remove blank linesawk "{ sub("""\r$""", """"""); print }" - convert unix like lines to dos linesSave:
No comments:
Post a Comment