[CentOS] script help - '3rd last field'

Tom Brown tom at ng23.net
Mon Jun 8 09:56:09 UTC 2009


>    echo foo.bar.VALUE.baz.lala | awk -F. '{ print $(NF-2); }'
>
>   

excellent - just what i needed

thanks



More information about the CentOS mailing list