Tag Archives: search

Search for files containing keyword

Search for files containing keyword and copy them to a diff directory grep -lZir ‘keyword’ . | cpio –null -pvd /path_to_directory/ Search for files containing keyword grep -RInis “search string” /tmp

Posted in Linux | Tagged | 1 Comment

Exchange – Search For Keyword

Search-Mailbox -Identity “Joe Healy” -SearchQuery “Subject:Project Hamilton” -TargetMailbox “My Mailbox” -TargetFolder “JoeHealy-ProjectHamilton” -LogLevel Full This example searches all mailboxes in your organization for messages that contain the words “election”, “candidate”, or “vote”. The search results are copied to the “My … Continue reading

Posted in Exchange | Tagged | 5 Comments

Search string through files

grep -RInis “search string” /foo Search keyword and copy results to folder: grep -lZir ‘search string’ . | cpio –null -pvd /path_to_folder/

Posted in Linux | Tagged | Leave a comment