|
|
Browse by Tags
All Tags » PowerShell » file » object » text
-
Ars technica did an article about PowerShell : Microsoft PowerShell rolled into Longhorn Server
In this article two PowerShell examples from my blog are used : How to get the uptime of a specific service: $s = gwmi win32_service -filter ''name = 'spooler''' ''{0}'' -f ((get-date) - ([wmi]'').ConvertToDateTime((gwmi ...
-
from the Hey Scripting Guy article :
How Can I Parse a Tab-Delimited File and Then Save That as a Comma-Separated Values File?
gc tab.txt |% {$_.split(''`t'') |? {$_ -match '='} |% {$r = new-object object} {$r | add-Member -memberType noteProperty -name $_.split('=')[0] -Value $_.split('=')[1]}{$r}} | export-csv -NoTypeInformation ...
|
|
|