CSSORT(1p)
CSSORT(1p) π β¨
okay bestie, so this is the User Contributed Perl Documentation page for cssort β she's a perl script, she's iconic, and she's about to sort ur Czech text like a queen π
πΈ NAME πΈ
cssort β Czech sort, periodt π¨πΏβ¨
π FORMAT π
cssort [ "-c"list | "-f"list ["-d"regexp]] [files ...]
π¦ SYNOPSIS π¦
like, literally here's how u'd actually use her:
cssort -c10-15,50-,25-45 < file
cssort -f3,5-6 < file
cssort -f3,5-6 -s: < file
β¨ DESCRIPTION β¨
so cssort is this utility that sorts ur input lines using the rules that the Czech language actually uses β not the boring default byte order, the real vibes π₯ Run her with zero options and she just takes the whole line and sorts on that, simple as. But when u pass the options, u can tell her exactly which parts of each line she should be comparing π
list
a comma-separated list of integer field numbers or field ranges, no cap. The fields are indexed from 1 β we do not do zero-indexing in this house π
ββοΈ β and if a range is open (like 5-), that means all the remaining fields from the starting number onwards. She said "and everything after that too, girl" π
OPTIONS
-cβ stands for columns, and the list that comes after it specifies byte ranges on the line. You'll probably reach for this one when ur sorting data with fixed width fields β the classic spreadsheet-export situation, iykyk π-fβ the fields that are gonna be used for the sort. field mode, bestie πΎ-dβ the delimiter that separates fields when ur using the-foption. Heads up: this is a Perl regular expression, not just a plain character. The default is"[ \t]+", which means any number of spaces or tabs in a row β she's flexible like that π
lowkey important: the program assumes ISO-8859-2 encoding. Some way to specify another input encoding will come in the next versions (so like, not yet, bestie π). If u need to sort files with different encodings, u might wanna check out the cstocs conversion utility β she's the girl for that job π«Ά
π SEE ALSO π
π AUTHOR π
Jan Pazdziora
and that's the whole page, bestie β no notes, she ate π β¨
this was brought to u by perl v5.30.0 and dated 2019-10-05 β mwah, take care, slay ur sorts ππ¦π
π¦ where this page comes from
- ubuntu jammy: cstocs 1:3.44-1.1 Β· GPL-1.0-or-later OR Artistic-1
- ubuntu noble: cstocs 1:3.44-1.1 Β· GPL-1.0-or-later OR Artistic-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms