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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
