Feb 9, 2003 #1 rayeni MIS Dec 13, 2002 13 US Hello, Is there a way to redirect only the last two lines of command output to a text file, instead of all of the command's output?
Hello, Is there a way to redirect only the last two lines of command output to a text file, instead of all of the command's output?
Feb 9, 2003 #2 Aslamvs Technical User Jul 8, 2002 472 Hi, which command are you running? this is possible using find option. e.g. If i run ipconfig /all command and i want output of physical address in text file then you can use find parameter to do that that is you can run command like this ipconfig /all|find/I "physical Addresss" >output.txt this will give physical address in output.txt nothing else. Hope this helps Aslam Upvote 0 Downvote
Hi, which command are you running? this is possible using find option. e.g. If i run ipconfig /all command and i want output of physical address in text file then you can use find parameter to do that that is you can run command like this ipconfig /all|find/I "physical Addresss" >output.txt this will give physical address in output.txt nothing else. Hope this helps Aslam