| 제목 |
280 : [win32] command 용 파일찾기 명령어 |
| 이름 |
산이 [홈]http://linuxchannel.net/ |
[win32] command 용 파일찾기 명령어
- Windows PowerShell 2.0
Get-ChildItem [[-Path] <string[]>] [[-Filter] <string>] [-Exclude <string[]>] [-Force] [-Include <string[]>] [-Name] [-Recurse] [-UseTransaction] [<CommonParameters>]
*사용예)
PS C:\path.to> get-childitem ./ '*검색어*' -recurse -force
*파일로 저장)
PS C:\path.to> get-childitem ./ '*검색어*' -recurse -force > ../result.txt
참고
http://technet.microsoft.com/en-us/library/dd347686.aspx
http://superuser.com/questions/88877/windows-xp-command-to-search-for-files
get-childitem 은 Unix/Linux 의 find 와 비슷한 역할
powershell 의 findstr 는 Unix/Linux 의 find + grep 과 비슷한 역할 |
|
2011년 10월 29일 19:27:12 토(저녁) from 211.212.225.115 |