Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / bash-completion / completions / | server ip : 104.21.89.46 your ip : 172.69.58.110 H O M E |
Filename | /usr/share/bash-completion/completions/ipv6calc |
Size | 1.4 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:54 |
Last modified | 07-Apr-2014 22:10 |
Last accessed | 05-Jul-2025 20:34 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
# ipv6calc completion -*- shell-script -*-
_ipv6calc()
{
local cur prev words cword split
_init_completion -s || return
case "$prev" in
-d|--debug)
return 0
;;
-I|--in|-O|--out|-A|--action)
# With ipv6calc < 0.73.0, -m does nothing here, so use sed instead.
COMPREPLY=( $( compgen -W "$( ipv6calc "$prev" -h 2>&1 | \
sed -ne 's/^[[:space:]]\{1,\}\([^[:space:]:]\{1,\}\)[[:space:]]*:.*/\1/p' )" \
-- "$cur" ) )
return 0
;;
--db-geoip|--db-ip2location-ipv4|--db-ip2location-ipv6)
_filedir
return 0
;;
--printstart|--printend)
return 0
;;
esac
$split && return 0
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --debug --quiet --in --out --action
--examples --showinfo --show_types --machine_readable --db-geoip
--db-geoip-default --db-ip2location-ipv4 --db-ip2location-ipv6
--lowercase --uppercase --printprefix --printsuffix --maskprefix
--masksuffix --printstart --printend --printcompressed
--printuncompressed --printfulluncompressed --printmirrored' \
-- "$cur" ) )
return 0
fi
return 0
} &&
complete -F _ipv6calc ipv6calc
# ex: ts=4 sw=4 et filetype=sh
_ipv6calc()
{
local cur prev words cword split
_init_completion -s || return
case "$prev" in
-d|--debug)
return 0
;;
-I|--in|-O|--out|-A|--action)
# With ipv6calc < 0.73.0, -m does nothing here, so use sed instead.
COMPREPLY=( $( compgen -W "$( ipv6calc "$prev" -h 2>&1 | \
sed -ne 's/^[[:space:]]\{1,\}\([^[:space:]:]\{1,\}\)[[:space:]]*:.*/\1/p' )" \
-- "$cur" ) )
return 0
;;
--db-geoip|--db-ip2location-ipv4|--db-ip2location-ipv6)
_filedir
return 0
;;
--printstart|--printend)
return 0
;;
esac
$split && return 0
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --debug --quiet --in --out --action
--examples --showinfo --show_types --machine_readable --db-geoip
--db-geoip-default --db-ip2location-ipv4 --db-ip2location-ipv6
--lowercase --uppercase --printprefix --printsuffix --maskprefix
--masksuffix --printstart --printend --printcompressed
--printuncompressed --printfulluncompressed --printmirrored' \
-- "$cur" ) )
return 0
fi
return 0
} &&
complete -F _ipv6calc ipv6calc
# ex: ts=4 sw=4 et filetype=sh