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

37 lines, 34 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 each-word xargs-like splitting, similar to IFS too
15 split-by (str=\n, ifs=':', pattern=/s+/)
16 if-split-by
17 chop alias for split-by (pattern=/s+/)
18 must-match (/ <capture d+> </capture w+> /)
19 if-match
20X [Table Create] table --by-row --by-col (&place); construct/parse a table
21 table/cols cols name age - cols name:Str age:Int
22 types type Str Int
23 attr attr units - secs
24 row emit row
25 table cat concatenate TSV8
26 table align to ssv8
27 table tabify to tsv8
28 table header (cols = :|name age|, types = :|Str Int|, units = :|- secs|)
29 table slice e.g. slice (1, -1) slice (5, 7)
30 table to-tsv lose type info, and error on \t in cells
31X [Table Ops] where subset of rows; dplyr filter()
32 pick subset of columns ('select' taken by shell)
33 mutate transmute [average = count / sum] - drop the ones that are used?
34 rename (bytes='bytes', path='filename')
35 group-by add a column with a group ID [ext]
36 sort-by sort by columns; dplyr arrange() [ext]
37 summary count, sum, histogram, any, all, reduce(), etc. [ext]