Microsoft's Monad Misses the Mark
April 25, 2006 at 05:53 PM | categories: windows, microsoft | View Comments Monad, what have you become? I found the following on Arul Kumaravel's blog:|
CMD.EXE |
Monad Equivalent |
|
cd |
set-location cd |
|
cd c:\temp |
set-location c:\temp |
|
cls |
clear-host cls |
|
copy con |
function copycon { [system.console]::in.readtoend() } |
|
copy con foo.txt |
copycon | set-content foo.txt |
|
dir |
get-childitem dir |
|
dir /ad |
get-childitem | where { $_.MshIsContainer } dir | where { $_.MshIsContainer } |
|
dir /od |
get-childitem | sort-object LastWriteTime dir | sort LastWriteTime |
|
dir /o-d |
get-childitem | sort-object LastWriteTime -desc dir | sort LastWriteTime -desc |
|
pushd |
push-location |
|
popd |
pop-location |
|
start . |
invoke-item . ii . |