Delete item from array
-
Monday, April 30, 2012 6:32 AM
Hi,
I am using the import-csv function to import a csv with 2 colums. The top row appears to be the csv column headings but after the import-csv it's now appearing as data.
I was looking at creating a .net array which has a remove method but it doesnt seem to work.
Is there a way in import-csv to ignore the first column, if not does anyone have any tips for removing an item from an array (an array createed by the import-csv function)
Thanks
- Changed Type Yan Li_Microsoft Contingent Staff, Moderator Monday, May 07, 2012 2:08 AM
All Replies
-
Monday, April 30, 2012 6:45 AMIn your question, you say you want to ignore the first column. Is this what you mean?
Grant Ward, a.k.a. Bigteddy
-
Monday, April 30, 2012 6:52 AM
To ignore the first row, you would do this:
$csv = import-csv myCSV.csv | select -skip 1
Grant Ward, a.k.a. Bigteddy
-
Tuesday, May 01, 2012 8:04 AMModerator
Hi,
In addition, the below links should be helpful:
http://technet.microsoft.com/en-us/library/ee692802.aspx
Regards,
Yan Li
Yan Li
TechNet Community Support
- Marked As Answer by Yan Li_Microsoft Contingent Staff, Moderator Monday, May 07, 2012 2:08 AM

