Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
vic20forever
· 6y ago · 0 comments
>You could do that, but the way to write it in the bash way would be `dir | select -first 3`
Fyi, `dir | select -first 3` also works in PowerShell.
Comments
[–]
athrun
6y ago
Yes, this is what the parent meant: it is valid PowerShell. It wouldn't work by default in Bash unless you had `dir` and `select` defined there somehow.
[–]
jstanley
6y ago
"dir" is commonly available on Linux and "select" is a bash built-in, which is probably why so many of us were confused by the comment :)