This correctly prints test
$ echo 'this is a test' | awk '{print $4}'
test
While using this command inside /bin/bash -c
does not work
/bin/bash -c "echo 'this is a test' | awk '{print $4}'"
this is a test
How can I get awk to work correctly when using with /bin/bash -c
?