#!/bin/bash
rm utolso.txt 2> /dev/null
for a in $1/*;
do
    tail -n 1 $a >> utolso.txt;
done
