STILTS-TLOOP(1)

๐Ÿ’ซ stilts-tloop(1) โ€” the Stilts commands era ๐Ÿ’ซ

okay bestie, gather round, because stilts-tloop(1) is about to be your new fave. it's a lil command that makes a whole table out of a loop variable. yes, like a for loop. but table. iconic. โœจ


๐ŸŽ€ NAME ๐ŸŽ€

stilts-tloop โ€” generates a single-column table from a loop variable.

that's it. that's the whole job. and it ate. ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

stilts tloop [ocmd=<cmds>]
             [omode=out|meta|stats|count|checksum|cgi|discard|topcat|samp|tosql|gui]
             [out=<out-table>] [ofmt=<out-format>] [colname=<value>]
             [start=<float-value>] [end=<float-value>] [step=<float-
             value>] [forcefloat=true|false]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

so what tloop does is it generates a one-column table, and the values in that column are effectively populated from a for loop โ€” like, start, end, step, the whole trio. ๐Ÿ”

and honestly? lowkey useful just as it is. but the real main character energy is when you postprocess it with ocmd parameters to add more columns and stuff. suddenly it's a whole table. obsessed. ๐Ÿ˜ญ๐Ÿ’–


โœจ OPTIONS โœจ

okay this is the part where you actually pay attention, bestie. every single one matters.

  • ocmd=<cmds> โ€” says what processing to do on the output table, after all the other processing has already happened. the value is one or more of the filter commands described in SUN/256. if you're giving more than one, separate them with semicolon characters (";"). you can also repeat this parameter multiple times on the same command line to build up a list of processing steps โ€” and the sequence of commands you give in that way is literally the processing pipeline that gets performed on the table. ๐Ÿ› ๏ธ

also! commands can be supplied in an external file instead, by using the indirection character '@'. so a value of "@filename" makes the file filename get read for a list of filter commands to execute. the commands in that file can be separated by newline characters and/or semicolons, and lines that are blank or that start with a '#' character are ignored. and a backslash character '\fR' at the end of a line joins it with the following line. no cap. ๐Ÿค

  • omode=out|meta|stats|count|checksum|cgi|discard|topcat|samp|tosql|gui โ€” the mode the result table gets output in. default is out, which means the result gets written as a new table to disk or wherever, as decided by the out and ofmt parameters. but there are other possibilities too, and they correspond to other uses a table can be put to besides just outputting it โ€” like displaying metadata, calculating statistics, or populating a table in an SQL database. heads up: for some values of this parameter you'll need additional parameters (<mode-args>) to pin down the exact behaviour. ๐Ÿ‘‘

the possible values are:

  • out
  • meta
  • stats
  • count
  • checksum
  • cgi
  • discard
  • topcat
  • samp
  • tosql
  • gui

use the help=omode flag or see SUN/256 for more info. iykyk. ๐Ÿ“–

  • out=<out-table> โ€” where the output table goes. usually that's a filename to write to. but if it equals the special value "-" (which is the default), the output table gets written to standard output. ๐Ÿ–จ๏ธ
bestie, important: you must only give this parameter if omode has its default value of "out".
  • ofmt=<out-format> โ€” says what format the output table gets written in (one of the ones in SUN/256 โ€” matching is case-insensitive and you can use just the first few letters). if it has the special value "(auto)" (the default), the output filename gets examined to try and guess what sort of file is required, usually by looking at the extension. and if it's not obvious from the filename what output format is intended? an error will result. ๐Ÿ’€
same rule as above, fr fr: this parameter must only be given if omode has its default value of "out".
  • colname=<value> โ€” gives the name of the single column produced by this command. name your baby. ๐Ÿผ
  • start=<float-value> โ€” the starting value of the loop variable. this will be the value in the first row of the table. ๐Ÿ
  • end=<float-value> โ€” the value which the loop variable will not exceed. and "exceeding" is meant in the positive or negative sense according to the sense of the step parameter โ€” as usual for a for-type loop. so don't come for the semantics, it knows what it's doing. ๐Ÿšฆ
  • step=<float-value> โ€” the amount by which the loop variable gets incremented at each iteration, i.e. each table row. ๐Ÿ“ˆ
  • forcefloat=true|false โ€” affects the data type of the loop variable column. if true, the column is always floating point. if false, and if all the other parameters are of integer type, then the column will be an integer column. ๐Ÿงฎ

๐Ÿ” SEE ALSO ๐Ÿ”

if the package stilts-doc is installed, the full documentation SUN/256 is available in HTML format:

file:///usr/share/doc/stilts/sun256/index.html

๐Ÿ“ฆ VERSION ๐Ÿ“ฆ

STILTS version 3.5.4-debian

this is the Debian version of Stilts, which lack the support of some file formats and network protocols. for differences see:

file:///usr/share/doc/stilts/README.Debian

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Mark Taylor (Bristol University)


and that's the whole page, bestie. we did it. slay. this lil manual page is from Mar 2017, and the version floating around down here is STILTS version 3.5.4-debian โ€” the Debian one, which lack the support of some file formats and network protocols (for the differences, peep file:///usr/share/doc/stilts/README.Debian, as ever ๐Ÿซถ). thanks for reading, now go make a one-column table and feel powerful. ๐Ÿ’–โœจ๐ŸŽ€๐Ÿฆ‹๐ŸŒˆ

๐Ÿ“ฆ where this page comes from