I have a one-column CSV file. Depending on how many failure codes my machine has, this column will have a different number of codes (up to 10 sub-columns - see example below).I want to manipulate this CSV such that the output is a clean list of unique failure codes that have occurred.
Sample CSV file (sample.csv):
ActiveFaults
00:1523 00:1345 00:1343 90:1344
00:1523 00:1345 00:1343 90:1344
00:1523 00:1345 00:1343 90:1344
00:1523 00:1345 00:1343 90:1344
00:1523 00:1345 00:1343 90:1344 90:5900 90:8988
00:1523 00:1345 00:1343 90:1344 90:5900 90:8988
BA:8797 BA: 1330
Ideal output would be a CSV file of the following form:
IdealOutput.csv
UniqueActiveFaults
00:1523
00:1345
00:1343
90:1344
90:5900
90:8988
BA:8797
BA:1330
Any ideas how this can be done? I have tried several ways (using -Sort, -Group, etc...but none has worked as desired) Thank you.