PSC(1)
π PSC(1) β the General Commands Manual glow-up π
okay bestie, so this is psc from the General Commands Manual, and it's literally the little matchmaker that gets your messy data ready for sc(1) π₯°β¨
πΈ NAME πΈ
psc β prepare sc files π
β¨ SYNOPSIS β¨
psc [-fLkrSPv] [-s cell] [-R n] [-C n] [-n n] [-d c]
π¦ DESCRIPTION π¦
So psc is the β¨prep eraβ¨ of data β it gets stuff ready to be fed into the spreadsheet calculator sc(1). It reads totally normal ascii data on standard input, and standard output is an sc file. No cap.
With no options at all, psc starts the spreadsheet in cell A0. Strings are right justified (yes, right, we're fancy like that π
). All data on a line goes into the same row, and every new input line makes the output row number go up by one. Default delimiters are tab and space. And the column formats get set to one larger than the number of columns required to hold the largest value in the column β she measures everything so nothing gets squished, periodt.
π OPTIONS π
-fβ Omit column width calculations. This one's for when you're prepping data to be merged with an existing spreadsheet. If you don't pass it, the column widths calculated for the datapscread will override the ones already set in the existing spreadsheet. so like, she's taking over, respectfully π-Lβ Left justify strings. we're switching it up, okay?-kβ Keep all delimiters. This makes the output cell change on every single new delimiter it hits in the input stream. The default behaviour is to condense multiple delimiters into one, so the cell only changes once per input data item. no condensing today, we keep every crumb π-rβ Output the data by row first then column. If your input is just a single column, this option flips it: you get one row with multiple columns instead of a single-column spreadsheet. she rotated, she ate π₯-scell β Start the top left corner of the spreadsheet in cell. For example,-s B33will arrange the output data so the spreadsheet starts in columnB, row33. so iconic, pick your own starting point π-Rn β Increment by n on each new output row.-Cn β Increment by n on each new output column.-nn β Output n rows before advancing to the next column. This one's for when the input is arranged in a single column but the spreadsheet is supposed to have multiple columns, each of which is length n. chunking the vibe π-dc β Use the single character c as the delimiter between input fields. just one character, bestie, don't get greedy.-Pβ Plain numbers only. A field counts as a number only when there is no imbedded[-+eE]. strict queen β-Sβ All numbers are strings. everything is a string now, no exceptions π-vβ Print the version ofpsc. just a lil flex π
π«Ά SEE ALSO π«Ά
sc(1) β go say hi to her sister π
π AUTHOR π
Robert Bond β the legend, the icon, the moment β¨
real talk: this whole thing is literally aboutsc(1)data prep, so if-fand-sare confusing you, just remember she's either merging into an existing spreadsheet or starting fresh in a cell you picked. that's the whole plot π
and that's the tea, bestie π§ this page came to you as PSC 7.16_1.1.3 241123 0424, dated 19 September 2002 β a whole vintage icon still serving looks πβ¨π
π¦ where this page comes from
- ubuntu resolute: sc 7.16-1.1.3-1
- ubuntu stonking: sc 7.16-1.1.3-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms