From 590e064e358add9e0d243cd10bf49a892ae57800 Mon Sep 17 00:00:00 2001 From: fsc-eriker <72394365+fsc-eriker@users.noreply.github.com> Date: Mon, 29 Sep 2025 14:43:48 +0300 Subject: [PATCH] Update faq.md: Avoid useless use of grep | awk (#1142) In "Connecting to a service running on host", refactor to a single Awk script in favor of grep | head | awk --- docs/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index 5c361ff..da19101 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -34,7 +34,7 @@ Then from within a virtual machine you can access the service using the router's or by running the following command in the Terminal: ```shell -netstat -nr | grep default | head -n 1 | awk '{print $2}' +netstat -nr | awk '/default/{print $2; exit}' ``` Note: that accessing host is only possible with the default NAT network. If you are running your virtual machines with