mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 21:05: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 remove <hostname>
|
||||||
$_me list [127.]
|
$_me list [127.]
|
||||||
$_me edit
|
$_me edit
|
||||||
|
$_me file
|
||||||
$_me command [--command-options] [<arguments>]
|
$_me command [--command-options] [<arguments>]
|
||||||
$_me -h | --help
|
$_me -h | --help
|
||||||
$_me --version
|
$_me --version
|
||||||
@ -683,6 +684,15 @@ edit() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------ file
|
||||||
|
|
||||||
|
desc file <<EOM
|
||||||
|
Usage: $_me file
|
||||||
|
EOM
|
||||||
|
file() {
|
||||||
|
cat /etc/hosts
|
||||||
|
}
|
||||||
|
|
||||||
# ---------------------------------------------------------------------- remove
|
# ---------------------------------------------------------------------- remove
|
||||||
|
|
||||||
desc remove <<EOM
|
desc remove <<EOM
|
||||||
|
Loading…
Reference in New Issue
Block a user