EnglishFrenchSpanish

OnWorks favicon

gbget - Online in the Cloud

Run gbget in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command gbget that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


gbget - Basic data extraction and manipulation tool

SYNOPSIS


gbget [options] 'filename[index](C,R)trans'

DESCRIPTION


Print slices of tabular data from files and apply transformations. Data are read from text
files with fields separated by space (use option -F to specify a different separator).
Inside data file, data-blocks are separated by two empty lines. File can be compressed
with zlib (.gz).

filename
is the input file. If not specified it default to stdin or the last specified
filename if any.

index stands for a data-block index.

index stands for a data-block index.

C,R stands for columns and rows spec given as "min:max:skip" to select from "min" to
"max" every "skip" steps. If negative min and max are counted from the end. By
default all data are printed ("1:-1:1"). If min>max then count is reversed and skip
must be negative (-1 by default). Different specs are separated by semicolon ';'
and considered sequentially.

trans is a list of transformations applied to selected data: 'd' take the diff of
subsequent columns; 'D' remove all rows with at least one Not-A-Number (NAN) entry;
'f' flatten the output piling all columns; 'l' take log of all entries, 'P' print
all entries collected as a data-block; 't' transpose the matrix of data; 'z'
subtract from the entries in each column their mean; 'Z' replace the entry in each
column with their zscore; 'w' divide the entry in each columns by their mean.

'<..;..>' functions separated by semicolons in angle brackets can be used for
generic data transformation; the function is computed for each row of data.
Variables names are 'x' followed by the number of the column and optionally by 'l'
and the number of lags. For instance 'x2+x3l1' means the sum of the entries in the
2nd column plus the entries in the 3rd column in the previous row. 'x0' stands for
the row number and 'x' is equal to 'x1'

'<@..;..>' if the functions specification starts with a '@' the functions are
computed recursively along the columns. In this case the number after the 'x' is
the relative column counted starting from the one considered at each step.

'{...}' a function in curly brackets can be use to select data: only rows that
return a non-negative value are retained

OPTIONS


-F set the input fields separators (default ' \t')

-o set the output format (default '%12.6e')

-e set the output format for empty fields (default '%13s')

-s set the output separation string (default ' ')

-t define global transformations applied before each output (default '')

-v verbose mode

EXAMPLES


gbget 'file(1:3)ld'
select the first three columns in 'file', take the log and the difference of
successive columns;

gbget 'file(2,-10:-1)
<x^2> select the last ten elements of the second' of 'file' and print their squares

gbget '[2]()' '[1]()' < ...
select the second and first data block from the standard input.

gbget 'file(1:3)<x1*x2-x3>'
select the first three columns in 'file' and in each row multiply the first two
entries and. subtract the third.

gbget 'file()<@x1+x2>'
print the sum of two subsequent columns

gbget 'file(1:3){x2-2}'
select the first three columns in 'file' for the rows whose second field is not
lower then 2

Use gbget online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 2
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 3
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 4
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 5
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 6
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • More »

Linux commands

  • 1
    7za
    7za
    7za - A file archiver with highest
    compression ratio ...
    Run 7za
  • 2
    7zr
    7zr
    7zr - A file archiver with highest
    compression ratio ...
    Run 7zr
  • 3
    cpan
    cpan
    cpan - easily interact with CPAN from
    the command line ...
    Run cpan
  • 4
    cpan2debp
    cpan2debp
    dh-make-perl - Create debian source
    packages from Perl modules ...
    Run cpan2debp
  • 5
    fweelin
    fweelin
    freewheeling � live looping musical
    instrument ...
    Run fweelin
  • 6
    fwexec
    fwexec
    fwexec - program to upload and rexecute
    image file to a connected NXT device ...
    Run fwexec
  • More »

Ad