3 ms·
Just create a Makefile or something that cats together hosts.common and hosts.work or hosts.play. all: cat hosts.common hosts.work.in > hosts.work
by pyre 16y ago
Just create a Makefile or something that cats together hosts.common and hosts.work or hosts.play.
all:
cat hosts.common hosts.work.in > hosts.work
cat hosts.common hosts.play.in > hosts.play
Make common changes to hosts.common and easily build your final hosts files.
play:
cat hosts.play | sudo tee /etc/hosts > /dev/null
work:
cat hosts.work | sudo tee /etc/hosts > /dev/null