Skip to content

Instantly share code, notes, and snippets.

@jaywryan
Last active March 6, 2016 20:42
Show Gist options
  • Save jaywryan/22d880a3e2ca73b179e8 to your computer and use it in GitHub Desktop.
Save jaywryan/22d880a3e2ca73b179e8 to your computer and use it in GitHub Desktop.
March Puzzle
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
@jaywryan
Copy link
Author

jaywryan commented Mar 6, 2016

First Attempt, not great with RegEx, probably a better way to do the match. I hate oneliners...but here it is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment