[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.138.123.215: ~ $
# ord.awk --- do ord and chr

# Global identifiers:
#    _ord_:        numerical values indexed by characters
#    _ord_init:    function to initialize _ord_
#
# Arnold Robbins, arnold@skeeve.com, Public Domain
# 16 January, 1992
# 20 July, 1992, revised

BEGIN    { _ord_init() }

function _ord_init(    low, high, i, t)
{
    low = sprintf("%c", 7) # BEL is ascii 7
    if (low == "\a") {    # regular ascii
        low = 0
        high = 127
    } else if (sprintf("%c", 128 + 7) == "\a") {
        # ascii, mark parity
        low = 128
        high = 255
    } else {        # ebcdic(!)
        low = 0
        high = 255
    }

    for (i = low; i <= high; i++) {
        t = sprintf("%c", i)
        _ord_[t] = i
    }
}
function ord(str,    c)
{
    # only first character is of interest
    c = substr(str, 1, 1)
    return _ord_[c]
}

function chr(c)
{
    # force c to be numeric by adding 0
    return sprintf("%c", c + 0)
}

Filemanager

Name Type Size Permission Actions
assert.awk File 382 B 0644
bits2str.awk File 327 B 0644
cliff_rand.awk File 307 B 0644
ctime.awk File 233 B 0644
ftrans.awk File 317 B 0644
getopt.awk File 2.18 KB 0644
gettime.awk File 2.43 KB 0644
group.awk File 1.75 KB 0644
join.awk File 378 B 0644
libintl.awk File 238 B 0644
noassign.awk File 425 B 0644
ord.awk File 937 B 0644
passwd.awk File 1.17 KB 0644
quicksort.awk File 1023 B 0644
readable.awk File 492 B 0644
rewind.awk File 404 B 0644
round.awk File 661 B 0644
strtonum.awk File 1.43 KB 0644
walkarray.awk File 214 B 0644
zerofile.awk File 424 B 0644