Last active
March 6, 2016 20:42
-
-
Save jaywryan/22d880a3e2ca73b179e8 to your computer and use it in GitHub Desktop.
March Puzzle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get-childitem -Path .\FileShare -Recurse | where {$_.Name -match '[\u00C0-\u00D6]' -or $_.Name -match '[\u00D8-\u00F6]' -or $_.Name -match '[\u00F8-\u00FF]'} | foreach { [pscustomobject]@{'FileName' = $_.Name;'Directory' = $_.Directory;'Created' = $_.CreationTime;'Modified' = $_.LastAccessTime;'Size' = $_.Length} } | Format-Table -AutoSize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First Attempt, not great with RegEx, probably a better way to do the match. I hate oneliners...but here it is