#!/bin/bash

# bash do_zlinsol <uloha>
# ver 1.0


uloha=$1

cp ${uloha}_matrixFile.mtx matrixFile
cp ${uloha}_rhsFile.mtx rhsFile

sed -i '1{/^%%/d;}' matrixFile
sed -i '1{/^%/d;}' matrixFile

sed -i '1{/^%%/d;}' rhsFile
sed -i '1{/^%/d;}' rhsFile
sed -Ei '1 s/[0-9]+\s+[0-9]+\s+([0-9]+)/\1/' rhsFile


./zlinsol_print_new
