On Saturday 03 April 2010 14:12:04 Rogério Nunes wrote: > Usa o AWK: > > exemplo: > > cat rec1.txt |grep -i 'Received' |awk '{print $2}' > > O $2 significa mostrar a segunda coluna, que no seu caso seria o "último".
No awk, pra mostrar a última coluna se usa '$NF" . ;) fabri...@maquina:~ # echo "bla blo" | awk '{print $NF}' blo [ ]'s -- To UNSUBSCRIBE, email to debian-user-portuguese-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201004061450.51505.fcann...@gmail.com