This file contains hidden or 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
<# Deleting *.txt files from 'c:\temp' and subdirectories more than 5 days old #> | |
Get-ChildItem 'C:/temp' -Recurse -Include '*txt' | |
| WHERE { ($_.CreationTime -le $(Get-Date).AddDays(-5)) } | |
| Remove-Item |
This file contains hidden or 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
<# Loop through IRC log File #> | |
$quotes = @() | |
$dest = 'out.txt' | |
Get-Content in.txt | % { | |
$line = $_ -replace '.*?[0-9]:','' | |
$line = $line -replace '"','' | |
$quotes += $line | |
} |
NewerOlder