1 Use the below regex commands to check for and remove SKIP codes in a stock
4 To search for lines containing SKIP codes/miscodes:
5 grep -e ' [[:alpha:]]*P[[:digit:]]\+-[[:digit:]]\+-[[:digit:]]\+ ' < kanjidic
7 To remove SKIP codes/miscodes (NEW):
8 sed -e 's/ [[:alpha:]]*P[[:digit:]]\+-[[:digit:]]\+-[[:digit:]]\+ / /g' < kanjidic.src > kanjidic.dest
9 NOTE: it takes a total of 3 passes to get rid of all codes. Verify the final
10 file using the grep statement listed above.