I want to do something like this but with perl: rm -f $(ls -lt|sed -n '6,$p')
so that the five newest files are always left. Is there some short way to get that effect in perl? Or do I have to analyze each file with stat or something? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/