1 2 3 4 5 6 7 8
#!/bin/bash while read line do t=`cut -f6 <<<$line` t2=`cut -f7 <<<$line` d=`cut -f1 <<<$line` [ x$d = xd ] && echo $line tn t2n || echo $line `dc -e "10k$d 12.9273*v$t-p"` `dc -e "10k$d 13.3468*$t2-p"` done < podatki.tsv > vsi.tsv