summaryrefslogtreecommitdiffstats
path: root/fiz/vaje/2/podatki.sh
blob: eff7ce6801407502863ab2bfaf66707d1976b8e0 (plain) (blame)
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