On 07/17/2014 03:30 PM, Michael Lynch wrote: > how about using awk to print the last column, using number of columns > variable $NF: > > awk '{print $NF}' file > > > Regards, > Mike
Or maybe something like this in perl itself? perl -ne 'print @{[split(/\s+/,)]}[-1],qq(\n);' file Regards, /Lars -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/