LOCATION,PART NO.,QUANTITY.
1H013,TS95V-9400-NB,1
1H013,TY05H-6400-NA,3
1H013,TY05H-6400-NA,1
1H013,TB07H-6400-NA,2
1H021,TY06S-6000-NA,10
1H013,TS95V-9400-NB,S
1H013,TY05H-6400-NA,S
1H023,TY05H-6400-NA,S
1H013,TB07H-6400-NA,S
1H011,TY06S-6000-NA,S
1H013,TB07H-6400-NA,M
1H011,TY06S-6000-NA,M
Unfortunately i am a web designer but my weakness is in programming. I know very little about programming and would like to learn more.
My goal by the end of july is to write a script in which the script consolidates and sorts the following text, as consolidating 20,000 items manually its virtually impractical and would consider taking alot of time.
when i run the script, the .txt file should be sorted and look like this , instead of what i showed you before:
1H011,TY06S-6000-NA,2
1H013,TB07H-6400-NA,4
1H013,TS95V-9400-NB,2
1H013,TY05H-6400-NA,5
1H021,TY06S-6000-NA,10
1H023,TY05H-6400-NA,1
The S and M = single and multiple, but at the end of the day, they only = 1.
I hope you understand where i am coming from, and i hope to recieve some support in the future, happy coding

New Topic/Question
Reply



MultiQuote








|