raphael() wrote:
I want to print the last entry by record "1111" in this file "records.txt"
grep ^1111 records.txt |tail -n1 perl -ne '$s=$_ if/^1111/}{print$s' records.txt -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/