my $last_X_lines = `tail -nX'; # where X is the number required