4 ms·
Agreed! It saves a trip to the man page. Something else I figured out recently is that if you put the pipe at the end of a line, you don't need a backslash:
by taylorfausak 14y ago
Agreed! It saves a trip to the man page.
Something else I figured out recently is that if you put the pipe at the end of a line, you don't need a backslash:
echo thing |
grep thing
- pmattos 14y agoI have seen this working, but didn't understand why... thanks!
- mooism2 14y agoAlso works with the && and || operators.
- ygra 14y agoI'd probably indent the grep in that case, though, to make things clearer. My own PowerShell scripts often take the form of Get-Foo | Where-Object { $_.blah } | ForEach-Object { ... } etc., especially with longer pipelines.