Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rich Command Shells. Parent comment
(ls).Count
(where ls is an alias for http://ss64.com/ps/get-childitem.html which returns .net FileInfo objects, it can also return info for registry paths)
and
ps | ?{ $_.Name -eq 'tobekilled' } | %{ $_.Kill() }
(ps an alias for http://ss64.com/ps/get-process.html returns .net Process objects)
or the equivalent of pkill
Stop-Process -Name 'tobekilled'
There are no comments on this comment yet.
(ls).Count
(where ls is an alias for http://ss64.com/ps/get-childitem.html which returns .net FileInfo objects, it can also return info for registry paths)
and
ps | ?{ $_.Name -eq 'tobekilled' } | %{ $_.Kill() }
(ps an alias for http://ss64.com/ps/get-process.html returns .net Process objects)
or the equivalent of pkill
Stop-Process -Name 'tobekilled'