on 06-26-2009 4:24 PM
I am sorry to ask these but hope somebody can help.
1) what is the equavelent of "| grep" ( i.e. pipe and grep in UNIX)
2) how to direct the output on a cmd to a file? In UNIX, it is "script file-name" before the output.
Please help. Thanks a lot!
Hi Linda
Instead of grep use CTRL+F to search in windows.
to redirect out put of file.bat to file2.txt type the following in command prompt of windows
>file.bat >file2.txt
Use "help" in command prompt to know about windows command
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You have run "tasklist" to get the process list.On your command prompt try these:
1)tasklist | grep <process_name>
For outputting them to text files, please check these commands.
2) tasklist > D:\ test.txt
3)tasklist | grep <process name> > D:\"file".txt
thanks,Prasanna
Edited by: Prasanna K on Jun 26, 2009 6:10 PM
Hi Linda
use
>netstat -abon >out.txt
This will redirect the out put of netstat -abon to out.txt file. out.txt file will be created where you invoke the commad prompt from, generally "C:\Documents and Settings\Administrator". Then you can search in that file any string like '6001'
Hope this answers your question.
Thanks and Regards
Anindya
Hi Linda,
Regrading your grep question you can use the find command
more file.txt | find "text"
Regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.