I want to execute the awk command with long parameters,like this:
ssh host "netstat -rn|awk 'NR!=1 && NF>=6 && $1!="Destination" {printf "%-15s %-20s\n", $1, $2}'|sort -f "
but there are some errors:
syntax error The source line is 1. The error context is NR!=1 && NF>=6 && >>> != <<< awk: Quitting The source line is 1.
So,how can I fix it?