mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 12:55:11 +00:00
Add file
command
This command simply runs `cat` on /etc/hosts
This commit is contained in:
parent
2853d6fd33
commit
bafa955308
10
hosts
10
hosts
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user