#!/bin/bash column=17 prep="cat" data="a2b/breast-cancer" learn="nbk" while [ `echo $1 | grep "-"` ]; do case $1 in -c|--column) column=$2;; -p|--prep) prep=$2;; -d|--data) data=$2;; -l|--learn) learn=$2;; *) blabln "'"$1"' unknown\n usage: genplotfiles [options]"; exit 1;; esac shift 2 done genplotfilesgc Prep="$prep" Column="$column" Learn="$learn" Data="$data" $1 | sort -n -t, -k 2