Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/85063/virtual/www/domains/waldauf.org/lib/plugins/color/syntax.php:1) in /data/web/virtuals/85063/virtual/www/domains/waldauf.org/inc/actions.php on line 180
programming:perl:read_file - WiKi

Read file

Read last X lines

Using bash tail

open my $fh, "-|", "tail", "-3", @ARGV or die "$0: cannot read file: $!";
 
print while <$fh>;
Navigation
Print/export
Toolbox