Minor tweaks, handling of 0 prefixed codes

This commit is contained in:
Steve Howes
2018-04-05 09:30:25 +01:00
parent ca4e8d6a68
commit cf635208cf
13 changed files with 13 additions and 11 deletions
Regular → Executable
View File
Regular → Executable
View File
+1
View File
@@ -1,3 +1,4 @@
0443,EVAP Control System Canister Purge Valve Circuit Malfunction
1000,OBD II Monitor Testing Not Completed
1001,Unable to Achieve Self-Test Function Or SCP Error
1100,MAF Sensor Circuit Intermittent
1 1000 0443 OBD II Monitor Testing Not Completed EVAP Control System Canister Purge Valve Circuit Malfunction
1 0443 EVAP Control System Canister Purge Valve Circuit Malfunction
2 1000 1000 OBD II Monitor Testing Not Completed OBD II Monitor Testing Not Completed
3 1001 1001 Unable to Achieve Self-Test Function Or SCP Error Unable to Achieve Self-Test Function Or SCP Error
4 1100 1100 MAF Sensor Circuit Intermittent MAF Sensor Circuit Intermittent
Regular → Executable
+1 -1
View File
@@ -1,7 +1,7 @@
ALL=
while IFS=, read -r col1 col2
do
ALL=$ALL$col1,
ALL=$ALL`expr $col1 - 0`,
done < dtc.csv
echo -n $ALL | sed 's/.$//'
Regular → Executable
View File