1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-21 05:51:31 +02:00
This commit is contained in:
Laoujin
2015-11-28 19:44:54 +01:00

View File

@@ -164,7 +164,6 @@ ls -fi *.txt -n # -f is not possible because -Force also exists
# Use `Get-Help Get-ChildItem -Full` for a complete overview # Use `Get-Help Get-ChildItem -Full` for a complete overview
# Results of the previous cmdlet can be passed to the next as input. # Results of the previous cmdlet can be passed to the next as input.
# grep cmdlet filters the input with provided patterns.
# `$_` is the current object in the pipeline object. # `$_` is the current object in the pipeline object.
ls | Where-Object { $_.Name -match 'c' } | Export-CSV export.txt ls | Where-Object { $_.Name -match 'c' } | Export-CSV export.txt
ls | ? { $_.Name -match 'c' } | ConvertTo-HTML | Out-File export.html ls | ? { $_.Name -match 'c' } | ConvertTo-HTML | Out-File export.html