#!/bin/sh
# tool for printing selected columns (1 or 2 choices)

if [ 0$2 = 0 ]
then
 awk '{if (substr($1,1,1)!="#") print $'$1'}'
else
 if [ 0$3 = 0 ]
 then
   awk '{if (substr($1,1,1)!="#") print $'$1', $'$2'}'
 else
   awk '{if (substr($1,1,1)!="#") print $'$1', $'$2', $'$3'}'
 fi
fi
