Me=`basename $0` Safe=$HOME/var/xomo/$Me echo $Safe mkdir -p $Safe . sandbox N=${N=1} Header='$KSLOC,$acap,$peer_reviews_mean,$peer_reviews,<$composite' Data=$Here/coqualmo1000-8.23.06.csv echo $Header > $Safe/$N.csv ( echo $Header cat $Data | gawk -F, 'NR>1 ' Want=$N | tee $Safe/$N.csv | cut -d, -f 2-5,9 ) > cut.data bore N=0.75 Pass=1 cut.data \ Pass=2 cut.data \ Pass=3 cut.data > $Safe/db.data