Add `file` command

This command simply runs `cat` on /etc/hosts
This commit is contained in:
William Melody 2015-03-16 19:48:16 -07:00
parent 2853d6fd33
commit bafa955308
1 changed files with 10 additions and 0 deletions

10
hosts
View File

@ -567,6 +567,7 @@ Usage:
$_me remove <hostname>
$_me list [127.]
$_me edit
$_me file
$_me command [--command-options] [<arguments>]
$_me -h | --help
$_me --version
@ -683,6 +684,15 @@ edit() {
fi
}
# ------------------------------------------------------------------------ file
desc file <<EOM
Usage: $_me file
EOM
file() {
cat /etc/hosts
}
# ---------------------------------------------------------------------- remove
desc remove <<EOM