F10 key ==> File   Edit   Search   Buffers   Windows   System   Help                                                                                                                   
#!/bin/bash                                                                                                                                                                            
                                                                                                                                                                                       
                                                                                                                                                                                       
for year in {2018..2021}                                                                                                                                                               
do                                                                                                                                                                                     
                                                                                                                                                                                       
  outqc="/home/karolina/CADM/PLOT/QC/eps/QC${year}.eps"                                                                                                                                
  outgnss="/home/karolina/CADM/PLOT/QC/eps/GNSS${year}.eps"                                                                                                                            
#pro vykresleni jinych grafu nutno odkomentovat jine radky                                                                                                                                                                                      
  date=$(gps_date -t -o "%V")                                                                                                                                                          
#  sed -e "s|<year>|$year|g" \                                                                                                                                                         
#      -e "s|<outfile>|$outqc|g" \                                                                                                                                                     
#      -e "s|<date>|$date|g" \                                                                                                                                                         
#  qc.src > qc.gpt                                                                                                                                                                     
                                                                                                                                                                                       
  sed -e "s|<year>|$year|g" \                                                                                                                                                          
      -e "s|<outfile>|$outgnss|g" \                                                                                                                                                    
      -e "s|<date>|$date|g" \                                                                                                                                                          
  sat.src > sat.gpt                                                                                                                                                                    
                                                                                                                                                                                       
#  gnuplot qc.gpt                                                                                                                                                                      
#  conv_EPS density=300 $outqc                                                                                                                                                         
                                                                                                                                                                                       
  gnuplot sat.gpt                                                                                                                                                                      
  conv_EPS density=300 $outgnss                                                                                                                                                        
                                                                                                                                                                                       
                                                                                                                                                                                       
                                                                                                                                                                                       
