Microsoft
Software
Hardware
Network
Question : Massage Data From CLI into Array
I have data in the below format that I'd like to get into a powershell array so I can step through it in a ForEach loop, I think you can see what i'd need as the column headers and the data in each column:
CDRXHelp 8.0 - CDR External Base Line Helper Tool
Setting focus to Instance001
Setting focus client name to file01
Installed IDAs
AppId: 84, Name: Continuous Data Replicator
REPID PAIRID SrcPath DestPath Dest Machine
213 433 D:\SiteShare\Data Q:\file01\SiteData\D\SiteS
hare\Data server1
213 434 D:\SiteShare\UserData Q:\file01\SiteData\D\SiteS
hare\UserD
ata server1
All suggestions are much appreciated.
Michael
Answer : Massage Data From CLI into Array
Hi Michael,
Want to drop the first few lines or preserve them?
This picks up from line 5 and returns everything else as an object, if you'd like to give it a try?
Cheers,
Chris
1: 2:
$Data = WhateverComandYouRan $Data[5..$($Data.Count)] -Replace '\s{2,}', ',' | ConvertFrom-Csv
Random Solutions
Access VBA probplem with GetRows
Does this HP ML370 G3 server support 64-bit OS?
asp.net I am trying to convert an html form into an aspx form or ? what ever. Need Help on how to to it.
Winzip 12 Backup Job Issues ?
Blackberry Users can receive but not send
Windows 7 - Windows could not be activated
find textbox and start div underneath it
Make wireless networking
VB6 end of support - consequences for practice
Sharepoint Survey: Clicked 'No' to 'Show user names while creating the survey! Is there a way to turn the feature back on to see the names again?