1FATSORT(1)                       User Commands                      FATSORT(1)
2
3
4

NAME

6       fatsort - FAT sorting tool
7

SYNOPSIS

9       fatsort [OPTIONS] DEVICE
10

DESCRIPTION

12       FATSort  sorts  directory structures of FAT file systems (FAT12, FAT16,
13       FAT32 and exFAT). Many MP3 hardware players don't sort files  automati‐
14       cally  but play them in the  order they were transferred to the device.
15       FATSort can help here.
16
17       Sort options:
18
19       -a     Use ASCIIbetical order for sorting
20
21       -c     Ignore case of file names (default for most locales)
22
23       -I PFX Ignore file name PFX
24
25       -n     Natural order sorting
26
27       -o FLAG Sort order of files where FLAG is one of
28
29              d : directories first (default)
30
31              f : files first
32
33              a : files and directories are not differentiated
34
35       -r     Sort in reverse order
36
37       -R     Sort in random order
38
39              This options makes all other sort options obsolete.
40
41       -t     Sort by last modification date and time
42
43       The following options can be specified multiple times to  select  which
44       directories shall be sorted:
45
46       -d DIR Sort directory DIR only
47
48       -D DIR Sort directory DIR and all subdirectories
49
50       -x DIR Don't sort directory DIR
51
52       -X DIR Don't sort directory DIR and its subdirectories
53
54       The  following  options can be specified multiple times to select which
55       directories shall be sorted using POSIX.2 extended regular expressions:
56
57       -e RE  Only sort directories that match regular expression RE
58
59       -E RE  Don't sort directories that match regular expression RE
60
61       However, options -e and -E may not be used simultaneously with  options
62       -d, -D, -x and -X.
63
64       -L LOC Use  the  locale  LOC instead of the locale from the environment
65              variables
66
67       More options:
68
69       -l     Print current order of files only
70
71       -i     Print file system information only
72
73       -f     Force sorting even if file system is mounted
74
75       -h, --help
76
77              Print some help
78
79       -v, --version
80
81              Print version information
82
83       -q     Be quiet
84
85       DEVICE must be a FAT12, FAT16, FAT32 or exFAT file system.
86
87       WARNING: THE FILESYSTEM MUST  BE  CONSISTENT  (NO  FILESYSTEM  ERRORS).
88       PLEASE  BACKUP YOUR DATA BEFORE USING FATSORT. RISK OF CORRUPT FILESYS‐
89       TEM!  FATSORT USER ASSUMES ALL RISK. FATSORT WILL NOT  BE  HELD  LIABLE
90       FOR DATA LOSS!
91

EXAMPLES

93       fatsort /dev/sda
94              Sort /dev/sda.
95
96       fatsort -n /dev/sdb1
97              Sort /dev/sdb1 with natural order.
98

AUTHOR

100       Written by Boris Leidner.
101

REPORTING BUGS

103       Report bugs to <fatsort@formenos.de>.
104
106       Copyright  © 2004-2019 Boris Leidner.  License GPLv2: GNU GPL version 2
107       (see LICENSE.txt)
108       This is free software: you are free  to  change  and  redistribute  it.
109       There is NO WARRANTY, to the extent permitted by law.
110
111
112
113fatsort 1.6.3                     August 2020                       FATSORT(1)
Impressum