上传者: swanky
|
上传时间: 2021-11-26 11:21:31
|
文件大小: 27KB
|
文件类型: -
NAME
SYNOPSIS
OPTIONS
DESCRIPTION
Filesystem issues
HFS+ on OS X / Darwin
JFS
NFS4
FAT/VFAT and NTFS
How to undo double UTF-8 (or other) encoded filenames
How to repair Samba files
Netatalk interoperability issues
SEE ALSO
BUGS
AUTHOR
NAME
convmv - converts filenames from one encoding to another
SYNOPSIS
convmv [options] FILE(S) ... DIRECTORY(S)
OPTIONS
-f ENCODING
specify the current encoding of the filename(s) from which should be converted
-t ENCODING
specify the encoding to which the filename(s) should be converted
-i
interactive mode (ask y/n for each action)
-r
recursively go through directories
--nfc
target files will be normalization form C for UTF-8 (Linux etc.)
--nfd
target files will be normalization form D for UTF-8 (OS X etc.).
--qfrom , --qto
be more quiet about the "from" or "to" of a rename (if it screws up your terminal e.g.). This will in fact do nothing else than replace any non-ASCII character (bytewise) with ? and any control character with * on printout, this does not affect rename operation itself.
--exec command
execute the given command. You have to quote the command and #1 will be substituted by the old, #2 by the new filename. Using this option link targets will stay untouched.
Example:
convmv -f latin1 -t utf-8 -r --exec "echo #1 should be renamed to #2" path/to/files
--list
list all available encodings. To get support for more Chinese or Japanese encodings install the Perl HanExtra or JIS2K Encode packages.
--lowmem
keep memory footprint low by not creating a hash of all files. This disables checking if symlink targets are in subtree. Symlink target pointers will be converted regardlessly. If you convert multiple hundredthousands or millions of files the memory usage of convmv might grow quite high. This option would help you out in that case.
--nosmart
by default convmv will detect if a filename is already UTF8 encoded and will skip this file if conversion from some charset to UTF8 should be performed. --nosmart