# https://www.nebulousresearch.org/codes/alfa/

for i in "Vodik1" "Vodik2"; do 
FILE=$i
BASE="set ylabel 'Flux [a.u.]';set xlabel 'wavelength [nm]';plot '$FILE.txt' w l t ''"
echo $BASE|gnuplot --persist
echo "set terminal jpeg;$BASE"|gnuplot >$FILE.jpg
#awk '{print $1*10" "$2}' $FILE.txt > A$FILE.txt; alfa A$FILE.txt
awk -F '&' '{if ($3 > 10000){print $0}}' A$FILE.txt_lines.tex > 10000$FILE.txt_lines.tex
done
