Created
August 28, 2014 22:04
-
-
Save BradGunnerSGT/5ee3039ba28efba38dcb to your computer and use it in GitHub Desktop.
list items in powershell older/newer than a certain date
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
# ls is an alias for get-childitem. get-childitem also take a -recurse and other | |
# useful params, used to include or exclude file types, etc... | |
ls file*.txt | Where-Object { $_.LastWriteTime -lt (get-date).AddDays(-3)} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment