NATSORT(1)

πŸ“¦ version 8.4.0, in opensuse-leap 16.0

πŸ’… NATSORT(1) β€” the natsort girlies' guide ✨

okay so bestie, welcome to natsort πŸ¦‹ this is the manual page for natsort 8.4.0, and it's genuinely one of those lil tools that just works and makes your life better. natural sort!! no more file10 before file2!! we love to see it πŸ’–


🌸 NAME 🌸

natsort β€” manual page for natsort 8.4.0 ✨

πŸŽ€ SYNOPSIS πŸŽ€

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 ...]

πŸ’« DESCRIPTION πŸ’«

Performs a natural sort on entries given on the command-line. that's the whole vibe, honestly πŸ‘‘

Arguments are read from sys.argv. yep, straight from there, no cap 🫢

🧚 positional arguments:

  • entries β€” the entries to sort. taken from stdin if nothing is given on the command line. so like, if you're feeling lazy you can just pipe stuff in, it's fine, we support you πŸ’œ

✨ options:

  • -h, --help β€” show this help message and exit. the classic. the icon 🌈
  • --version β€” show program's version number and exit. short, sweet, slay πŸŽ€
  • -p, --paths β€” interpret the input as file paths. okay so ngl this is not strictly necessary to sort all file paths, but bestie listen: in cases where there are OS-generated file paths like "Folder/" and "Folder (1)/", you need this option to make the paths sorted in the order you expect ("Folder/" before "Folder (1)/"). that's the tea β˜•
  • -f, --filter _LOW_ _HIGH_ β€” used for keeping only the entries that have a number falling in the given range. filtering but make it cute πŸ“
  • -F, --reverse-filter _LOW_ _HIGH_ β€” used for excluding the entries that have a number falling in the given range. the opposite of the one above, iconic behaviour πŸ’…
  • -e, --exclude _EXCLUDE_ β€” used to exclude an entry that contains a specific number. bye bye specific numbers πŸ‘‹
  • -r, --reverse β€” returns in reversed order. sometimes you just wanna go backwards, and honestly? valid πŸ™ˆ
  • -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 is int ⭐
  • --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. 1e4 would be considered as 1, "e", and 4, not as 10000. this only effects the --number-type=float. heads up bestie, it's exponent-free from here on out πŸ’€
  • -l, --locale β€” causes natsort to use locale-aware sorting. you will get the best results if you install PyICU πŸ‘‘

okay tiny reminder: --nosign and --noexp and --sign are all real flags with real consequences, and -l really does want PyICU for best results β€” that's straight from the page, not me guessing πŸ’–

🫢 sign-off 🫢

this lil beauty is natsort 8.4.0, dated July 2023 β€” go forth and sort naturally, bestie, you're literally the main character of your own directory πŸŒŸπŸ’œ

πŸ“¦ where this page comes from