cat without comments
I wanted to dump a file and remove all the comments. Here’s a way to do that:
awk '!/^ *#/ && NF' ~/.datadog-agent/datadog.yaml
I wanted to dump a file and remove all the comments. Here’s a way to do that:
awk '!/^ *#/ && NF' ~/.datadog-agent/datadog.yaml