Adrià Vilanova MartÃnez | 24d8701 | 2022-06-16 00:29:59 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | cd data_out/dep_en_L |
| 3 | LList="8 16 32 64 96" |
| 4 | LFinalList=() |
| 5 | |
| 6 | mkdir -p tmpdata |
| 7 | for L in $LList; do |
| 8 | if [ -d "$L" ]; then |
| 9 | (cd $L; cat *.res | sort -nk2 > "../tmpdata/$L.dat") |
| 10 | if [ $L -eq 32 ]; then |
| 11 | ../../out/cv_via_derivative < tmpdata/32.dat > tmpdata/32_derivada_E.dat |
| 12 | fi |
| 13 | LFinalList+=("$L") |
| 14 | else |
| 15 | echo "Folder with L=$L doesn't exist, skipping." |
| 16 | fi |
| 17 | done |
| 18 | |
| 19 | LFinalListString="${LFinalList[@]}" |
| 20 | |
| 21 | cd ../../ |
| 22 | mkdir -p data_out/dep_en_L_graphs |
| 23 | |
| 24 | cd data_out/dep_en_L_graphs |
| 25 | ../../graphs/dependenciaEnL.gnu "$LFinalListString" |
| 26 | |
| 27 | cd ../../ |
| 28 | #rm -rf data_out/dep_en_L/tmpdata |