Unix shell script to generate the features for training and test samples