GNO-Extras/bobbi
2020-02-22 15:17:34 -05:00
..
Makefile#000000 Added simple nl (number lines) utility 2020-02-09 19:48:30 -05:00
nl.c#b00008 Added simple nl (number lines) utility 2020-02-09 19:48:30 -05:00
README.md Yet more mistakes in the help! 2020-02-19 21:49:22 -05:00
sortdir.1#040000 Added first hack at man-page for sortdir 2020-02-19 22:33:41 -05:00
sortdir.c#b00008 Added call to ResetCacheGS(0); Do not write 'lib' or 'Libraries' dirs 2020-02-22 15:17:34 -05:00

** THIS IS ALPHA-QUALITY CODE **
** USE AT YOUR OWN RISK!      **

usage: sortdir [-s xxx] [-n x] [-rDwcvVh] path

  Options: -s xxx  Directory sort options
           -n x    Filename upper/lower case options
           -r      Recursive descent
           -D      Whole-disk mode (implies -r)
           -w      Enable writing to disk
           -c      Use creation time rather than modification
           -v      Verbose output
           -V      Verbose debugging output
           -h      This help

Upper/lower case option x:
  l  convert filenames to lower case             eg: read.me
  u  convert filenames to upper case             eg: READ.ME
  i  convert filenames to initial upper case     eg: Read.me
  c  convert filenames to camel case             eg: Read.Me

Directory sort options xxx, is a list of fields on which to
sort. The sort options are processed left-to-right.
  n  sort by filename ascending
  N  sort by filename descending
  d  sort by modification (or creation [-c]) date ascending
  D  sort by modification (or creation [-c]) date descending
  t  sort by type ascending
  T  sort by type descending
  f  sort folders (directories) to top
  F  sort folders (directories) to bottom
  b  sort by blocks used ascending
  B  sort by blocks used descending
  e  sort by EOF position ascending
  E  sort by EOF position descending

e.g.: sortdir -w -s nf .
Will sort the current directory first by name (ascending),
then sort directories to the top, and will write the sorted
directory to disk.