#!/bin/bash
cd experiments
nb_files=`find . -name "*.ied" | wc -l`
echo "nb_files:${nb_files}"

nb_lines=`find . -name "*.ied" -exec cat \{\} \; | wc -l`
echo "nb_lines:${nb_lines}"

nb_max=`find . -name "*.ied" -exec wc -l \{\} \;| sort -n | tail -n 1`
echo "nb_max:${nb_max}"

nb_files_div_two=$((${nb_files} / 2))
nb_lines_med=`find . -name "*.ied" -exec wc -l \{\} \;| sort -n | head -n ${nb_files_div_two} | tail -n 1`
echo "nb_lines_med:${nb_lines_med}"

#cd ..

