Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Splitting tab delimited flat file

$
0
0

I am a newbie to PowerShell. My data looks similar to this with no headers:

10422163    3381051    1948248    2014-09-24    2014-10-24    Discount    .37    1.00    .37    N

10422231    3392947     4928392   2014-09-28    2014-10-13    5115-BK   1.35    2.00   .22    N

There may be multiple lines similar to the two above so the script must take that into account.

I want to be able to "split" the line so that the information appears in one column and make a human readable report.

The first set of character is the Order Number

The second set is the invoice number

The third set is the purchase order number

The next two are invoice date, due date

The next one is the stock number

Then price, quantity, extended, other charge.

Your help is appreciated. Thank you.


Viewing all articles
Browse latest Browse all 6937

Trending Articles