added plan.sh, got case, sd, mean all working via awk. need to get into r. still cant generalise - ask DTL OH