首页
首页 » 其它 » mkmanifest

mkmanifest


mkmanifest

mkmanifest [files]

Create a list of filenames and their DOS 8.3 equivalents in the form of a series of mv commands. By default, the output is written to standard output; to create a shell script, redirect the output to a file. Useful if you use mcopy to move the files to an MS-DOS diskette, and you want to be able to later restore them to a Linux system. Files with names that already fit into the 8.3 format are not written to the manifest. See mtools for more information.

Example

$ mkmanifest mylong.filename.html mylonger.filename.html > mymanifest $ cat mymanifest mv mylongxf.htm mylong.filename.html mv mylonger.htm mylonger.filename.html

The file mymanifest can later be made executable and run to rename the files to their original names.