.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH FATSORT "1" "April 2024" "fatsort 1.6.5" "User Commands" .SH NAME fatsort \- FAT sorting tool .SH SYNOPSIS .B fatsort [\fI\,OPTIONS\/\fR] \fI\,DEVICE\/\fR .SH DESCRIPTION FATSort sorts directory structures of FAT file systems (FAT12, FAT16, FAT32 and exFAT). Many MP3 hardware players don't sort files automatically but play them in the order they were transferred to the device. FATSort can help here. .PP Sort options: .TP \fB\-a\fR Use ASCIIbetical order for sorting .TP \fB\-c\fR Ignore case of file names (default for most locales) .TP \fB\-I\fR PFX Ignore file name PFX .TP \fB\-n\fR Natural order sorting .HP \fB\-o\fR FLAG Sort order of files where FLAG is one of .IP d : directories first (default) .IP f : files first .IP a : files and directories are not differentiated .TP \fB\-r\fR Sort in reverse order .TP \fB\-R\fR Sort in random order .IP This options makes all other sort options obsolete. .TP \fB\-t\fR Sort by last modification date and time .PP The following options can be specified multiple times to select which directories shall be sorted: .TP \fB\-d\fR DIR Sort directory DIR only .TP \fB\-D\fR DIR Sort directory DIR and all subdirectories .TP \fB\-x\fR DIR Don't sort directory DIR .TP \fB\-X\fR DIR Don't sort directory DIR and its subdirectories .PP The following options can be specified multiple times to select which directories shall be sorted using POSIX.2 extended regular expressions: .TP \fB\-e\fR RE Only sort directories that match regular expression RE .TP \fB\-E\fR RE Don't sort directories that match regular expression RE .PP However, options \fB\-e\fR and \fB\-E\fR may not be used simultaneously with options \fB\-d\fR, \fB\-D\fR, \fB\-x\fR and \fB\-X\fR. .TP \fB\-L\fR LOC Use the locale LOC instead of the locale from the environment variables .PP More options: .TP \fB\-l\fR Print current order of files only .TP \fB\-i\fR Print file system information only .TP \fB\-f\fR Force sorting even if file system is mounted .HP \fB\-h\fR, \fB\-\-help\fR .IP Print some help .HP \fB\-v\fR, \fB\-\-version\fR .IP Print version information .TP \fB\-q\fR Be quiet .PP DEVICE must be a FAT12, FAT16, FAT32 or exFAT file system. .PP WARNING: THE FILESYSTEM MUST BE CONSISTENT (NO FILESYSTEM ERRORS). PLEASE BACKUP YOUR DATA BEFORE USING FATSORT. RISK OF CORRUPT FILESYSTEM! FATSORT USER ASSUMES ALL RISK. FATSORT WILL NOT BE HELD LIABLE FOR DATA LOSS! .SH EXAMPLES .TP fatsort /dev/sda Sort /dev/sda. .TP fatsort \-n /dev/sdb1 Sort /dev/sdb1 with natural order. .SH AUTHOR Written by Boris Leidner. .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT Copyright \(co 2004\-2023 Boris Leidner. License GPLv2: GNU GPL version 2 (see LICENSE.txt) .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.