Tengo este comando que funciona bien en Ubuntu pero en macOS me sale un error.
El comando:
sudo $(grep -qxF '127.0.0.1 app.local' /etc/hosts || echo '127.0.0.1 app.local' >> /etc/hosts)
Salida:
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-C num] [-g group] [-h host] [-p prompt] [-u user] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-C num] [-g group] [-h host] [-p prompt] [-u user] file ...