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
This commit is contained in:
fsc-eriker
2025-09-29 07:43:48 -04:00
committed by GitHub
parent 839c6e7562
commit 590e064e35
+1 -1
View File
@@ -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