NATSORT(1)
β¨ NATSORT(1) β¨
okay bestie, you're looking at the natsort manual page β that's the User Commands corner of the man pages, and yes, it's giving "natural sorting for shell" π let's get into it.
πΈ NAME πΈ
natsort β natural sorting for shell πβ¨
π¦ DESCRIPTION π¦
so the usage is literally right here:
usage: natsort [-h] [--version] [-p] [-f LOW HIGH] [-F LOW HIGH] [-e
EXCLUDE]
[-r] [-t {int,float,real,f,i,r}] [--nosign] [-s] [--noexp] [-l]
[entries ...]
It performs a natural sort on the entries you hand it on the command-line. π«Ά
Arguments are read from sys.argv.
π positional arguments π
entriesβ the entries you want sorted, bestie. If you don't put anything on the command line, they get taken fromstdin. no cap. π
π options π
-h,--helpβ show this help message and then exit. classic. β¨--versionβ show the program's version number and exit. π-p,--pathsβ interpret the input as file paths. ngl, this isn't strictly necessary to sort all file paths, but when you've got OS-generated paths like"Folder/"and"Folder (1)/", you need this option so the paths come out in the order you actually expect β that's"Folder/"before"Folder (1)/". the way that matters π-f,--filter LOW HIGHβ used for keeping only the entries that have a number falling in the given range. filtering era π-F,--reverse-filter LOW HIGHβ used for excluding the entries that have a number falling in the given range. opposite vibe, same energy π-e,--exclude EXCLUDEβ used to exclude an entry that contains a specific number. bye bestie π-r,--reverseβ returns in reversed order. main character flip π-t,--number-type,--number_type {int,float,real,f,i,r}β choose the type of number to search for."float"will search for floating-point numbers."int"will only search for integers."real"is a shortcut for"float"with--sign."i"is a synonym for"int","f"is a synonym for"float", and"r"is a synonym for"real". The default isint. π§--nosignβ do not consider"+"or"-"as part of a number, i.e. do not take sign into consideration. This is the default. π-s,--signβ consider"+"or"-"as part of a number, i.e. take sign into consideration. The default is unsigned. π--noexpβ do not consider an exponential as part of a number, i.e.1e4would be considered as1,"e", and4, not as10000. This only effects the--number-type=float. β οΈ-l,--localeβ causesnatsortto use locale-aware sorting. You will get the best results if you install PyICU. π
π SEE ALSO π
The full documentation for natsort is maintained as a Texinfo manual. If the info and natsort programs are properly installed at your site, the command
info natsort
should give you access to the complete manual. go read it, iykyk πβ¨
sign-off bestie π this page is from natsort 8.4.0, dated January 2026, and it lives under NATSORT(1) in the User Commands section. slay, that's the whole page, periodt. ππ¦π
π¦ where this page comes from
- ubuntu resolute: python3-natsort 8.4.0-2 Β· MIT/X11
- ubuntu stonking: python3-natsort 8.4.0-2 Β· MIT/X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms