CSSORT(1p)

πŸ“¦
version 3.44 Β· 4 versions
, in ubuntu jammy, ubuntu noble

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 -f option. 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 πŸ‘‘

Cz::Sort(3), cstocs(1).


πŸ’œ 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