Improved the awk line and replaced backticks by $().