@ARGV=glob "exa*.txt"; $^I=".bak"; while (<>) { if ($.<15) { s/^.*$//; } else { print; } } [download]
In reply to editing files with (<>) by sashac88