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 isout, which means the result gets written as a new table to disk or wherever, as decided by theoutandofmtparameters. 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:
outmetastatscountchecksumcgidiscardtopcatsamptosqlgui
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 ifomodehas 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 ifomodehas 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 thestepparameter โ 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. iftrue, the column is always floating point. iffalse, 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
- ubuntu stonking: stilts 3.5.4-1 ยท LGPL-2.1-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms