Use the Where-Object
cmdlet to filter data passed along the pipeline:
$startOfToday = (Get-Date).Date
Get-ChildItem H:myFolder-include *.txt -Recurse | Where-Object LastWriteTime -gt $startOfToday | ForEach-Object {$_ |gc ; ""} | Out-File H:est.txt
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…