Powershell importing a CSV file
beginner in powershell,
question: have csv file have imported. csv has a number of values in each cell. want know how can parse through data want.
example csv file:
samaccountname | title | department |
user1 | tester/worker/$$$/msn | accounting |
user2 | developer/$ | technical |
user3 | programer/thomas | pre-sales |
i powershell code go through entire csv , provide output of:
samaccountname | title | department |
user1 | worker | accounting |
user2 | developer | technical |
user3 | programer | pre-sales |
not clear on how can parse data, appreciated!
at first glance, looked wanted before first "/" in title column, not true of user1 based on example. logic need use provide data looking for?
Windows Server > Windows PowerShell
Comments
Post a Comment