#!/bin/bash for i in `intesectAttributes $Tmp/arff/*.arff | sort | grep -v defects`; do echo $i done echo defects