foreach -begin -process -end

gc d:\vm.txt|foreach  -begin {write-host "It's beginning."}  -process {$_ +"aa"} -end {write-host "The end"}

 

posted on 2014-06-23 18:10  momingliu11  阅读(405)  评论(0编辑  收藏  举报