1#! /bin/sh 2# 3# Given a directory of LOP-files, classify them and create lists for 4# each class in the current directory. 5# 6 7 8if [ "$1" ]; then 9 touch CLASS_1; 10 rm CLASS_*; 11 classify_problem -p $* | gawk 'BEGIN{FS=" : "}{cl[$3] = cl[$3] $1 "\n"}END{for(i in cl){printf cl[i] > "CLASS_" i}}' 12 echo generate_class_lists_from_file.sh $* > description 13else 14 echo "Usage: generate_class_lists_from_file.sh <problem_dir> <classify_problem-options>" 15fi 16