OILS / _devbuild / help / ysh-stdlib View on Github | oilshell.org

36 lines, 33 significant
1
2 Standard Library<a class="group-link" href="chap-stdlib.html">stdlib</a>
3
4
5 [Args Parser] parser Parse command line arguments
6 flag
7 arg
8 rest
9 parseArgs()
10X [Testing] describe Test harness
11X [Lines] slurp-by combine adjacent lines into cells
12X [Awk] each-line --j8 --max-jobs (Str, Template, Block) - xargs
13 each-row --max-jobs (Str, Template, Block) - xargs
14 split-by (str=\n, ifs=':', pattern=/s+/)
15 if-split-by
16 chop alias for split-by (pattern=/s+/)
17 must-match (/ <capture d+> </capture w+> /)
18 if-match
19X [Table Create] table --by-row --by-col (&place); construct/parse a table
20 table/cols cols name age - cols name:Str age:Int
21 types type Str Int
22 attr attr units - secs
23 row emit row
24 table cat concatenate TSV8
25 table align to ssv8
26 table tabify to tsv8
27 table header (cols = :|name age|, types = :|Str Int|, units = :|- secs|)
28 table slice e.g. slice (1, -1) slice (5, 7)
29 table to-tsv lose type info, and error on \t in cells
30X [Table Ops] where subset of rows; dplyr filter()
31 pick subset of columns ('select' taken by shell)
32 mutate transmute [average = count / sum] - drop the ones that are used?
33 rename (bytes='bytes', path='filename')
34 group-by add a column with a group ID [ext]
35 sort-by sort by columns; dplyr arrange() [ext]
36 summary count, sum, histogram, any, all, reduce(), etc. [ext]