http://bash-script.b2com.org/articol...i-dei-file.php