GRAYBYTE WORDPRESS FILE MANAGER1558

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/share/awk/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/share/awk//getopt.awk
# getopt.awk --- Do C library getopt(3) function in awk
#
# Arnold Robbins, arnold@skeeve.com, Public Domain
#
# Initial version: March, 1991
# Revised: May, 1993

# External variables:
#    Optind -- index in ARGV of first nonoption argument
#    Optarg -- string value of argument to current option
#    Opterr -- if nonzero, print our own diagnostic
#    Optopt -- current option letter

# Returns:
#    -1     at end of options
#    "?"    for unrecognized option
#    <c>    a character representing the current option

# Private Data:
#    _opti  -- index in multiflag option, e.g., -abc
function getopt(argc, argv, options,    thisopt, i)
{
    if (length(options) == 0)    # no options given
        return -1

    if (argv[Optind] == "--") {  # all done
        Optind++
        _opti = 0
        return -1
    } else if (argv[Optind] !~ /^-[^:[:space:]]/) {
        _opti = 0
        return -1
    }
    if (_opti == 0)
        _opti = 2
    thisopt = substr(argv[Optind], _opti, 1)
    Optopt = thisopt
    i = index(options, thisopt)
    if (i == 0) {
        if (Opterr)
            printf("%c -- invalid option\n", thisopt) > "/dev/stderr"
        if (_opti >= length(argv[Optind])) {
            Optind++
            _opti = 0
        } else
            _opti++
        return "?"
    }
    if (substr(options, i + 1, 1) == ":") {
        # get option argument
        if (length(substr(argv[Optind], _opti + 1)) > 0)
            Optarg = substr(argv[Optind], _opti + 1)
        else
            Optarg = argv[++Optind]
        _opti = 0
    } else
        Optarg = ""
    if (_opti == 0 || _opti >= length(argv[Optind])) {
        Optind++
        _opti = 0
    } else
        _opti++
    return thisopt
}
BEGIN {
    Opterr = 1    # default is to diagnose
    Optind = 1    # skip ARGV[0]

    # test program
    if (_getopt_test) {
        while ((_go_c = getopt(ARGC, ARGV, "ab:cd")) != -1)
            printf("c = <%c>, Optarg = <%s>\n",
                                       _go_c, Optarg)
        printf("non-option arguments:\n")
        for (; Optind < ARGC; Optind++)
            printf("\tARGV[%d] = <%s>\n",
                                    Optind, ARGV[Optind])
    }
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 26 2025 08:36:42
root / root
0755
assert.awk
0.374 KB
February 25 2018 17:17:35
root / root
0644
bits2str.awk
0.326 KB
February 25 2018 17:17:35
root / root
0644
cliff_rand.awk
0.3 KB
February 25 2018 17:17:35
root / root
0644
ctime.awk
0.229 KB
February 25 2018 17:17:35
root / root
0644
ftrans.awk
0.308 KB
February 25 2018 17:17:35
root / root
0644
getopt.awk
2.15 KB
February 25 2018 17:17:35
root / root
0644
gettime.awk
2.433 KB
February 25 2018 17:17:35
root / root
0644
group.awk
1.724 KB
April 18 2022 15:55:53
root / root
0644
have_mpfr.awk
0.216 KB
February 25 2018 17:17:35
root / root
0644
inplace.awk
1.949 KB
February 25 2018 17:17:35
root / root
0644
intdiv0.awk
0.451 KB
February 25 2018 17:17:35
root / root
0644
join.awk
0.369 KB
February 25 2018 17:17:35
root / root
0644
libintl.awk
0.232 KB
February 25 2018 17:17:35
root / root
0644
noassign.awk
0.412 KB
February 25 2018 17:17:35
root / root
0644
ord.awk
0.915 KB
February 25 2018 17:17:35
root / root
0644
passwd.awk
1.171 KB
April 18 2022 15:55:53
root / root
0644
processarray.awk
0.347 KB
February 25 2018 17:17:35
root / root
0644
quicksort.awk
1.007 KB
February 25 2018 17:17:35
root / root
0644
readable.awk
0.478 KB
February 25 2018 17:17:35
root / root
0644
readfile.awk
0.261 KB
February 25 2018 17:17:35
root / root
0644
rewind.awk
0.395 KB
February 25 2018 17:17:35
root / root
0644
round.awk
0.646 KB
February 25 2018 17:17:35
root / root
0644
shellquote.awk
0.461 KB
February 25 2018 17:17:35
root / root
0644
strtonum.awk
1.42 KB
February 25 2018 17:17:35
root / root
0644
walkarray.awk
0.209 KB
February 25 2018 17:17:35
root / root
0644
zerofile.awk
0.414 KB
February 25 2018 17:17:35
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF