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