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
window 7 OS: blank (black) screen only, as it logs in
Where is the Default Printer set in Crystal Reports?
adding static IP addresses onto a network. anything I should take into account?
Access Cheker Web part not working with MOSS SP2 with CU April 2010
How do I convert a 6 figure digit string to look like a date?
Exchange 2003 on SBS 2003 Active Sync and Blackberry/iPhone Configuration Help Needed
DC keeps rebooting- 2003 server!
Help with Lucene query in Alfresco
COM Interfaces in .NetQuestion:
how to install an IPhone app with UUID