Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mkmanifest(1) [bsd man page]

MKMANIFEST(1)						      General Commands Manual						     MKMANIFEST(1)

mkmanifest - create a shell script to restore Unix filenames SYNOPSIS
mkmanifest [ files ] DESCRIPTION
Mkmanifest creates a shell script that will aid in the restoration of Unix filenames that got clobbered by the MSDOS filename restrictions. MSDOS filenames are restricted to 8 character names, 3 character extensions, upper case only, no device names, and no illegal characters. The mkmanifest program is compatible with the methods used in pcomm, arc, and mtools to change perfectly good Unix filenames to fit the MSDOS restrictions. EXAMPLE
I want to copy the following Unix files to a MSDOS diskette (using the mcopy command). very_long_name 2.many.dots illegal: good.c Capital Mcopy will convert the names to: very_lon illegalx good.c capital The command: mkmanifest very_long_name 2.many.dots illegal: good.c Capital > manifest would produce the following: mv very_lon very_long_name mv 2.many.dots mv illegalx illegal: mv mv capital Capital Notice that "good.c" did not require any conversion, so it did not appear in the output. Suppose I've copied these files from the diskette to another Unix system, and I now want the files back to their original names. If the file "manifest" (the output captured above) was sent along with those files, it could be used to convert the filenames. SEE ALSO
arc(1), pcomm(1), mtools(1) local MKMANIFEST(1)

Check Out this Related Man Page

MCOPY(1)						      General Commands Manual							  MCOPY(1)

mcopy - copy MSDOS files to/from Unix SYNOPSIS
mcopy [ -tnvm ] sourcefile targetfile mcopy [ -tnvm ] sourcefile [ sourcefiles... ] targetdirectory DESCRIPTION
Mcopy copies the specified file to the named file, or copies multiple files to the named directory. The source and target can be either MSDOS or Unix files. The use of a drive letter designation on the MSDOS files, 'a:' for example, determines the direction of the transfer. A missing drive des- ignation implies a Unix file whose path starts in the current directory Mcopy will allow the following command line options: t Text file transfer. Mcopy will translate incoming carriage return/line feeds to line feeds. n No warning. Mcopy will not warn the user when overwriting an existing file. v Verbose mode. m Preserve the file modification time. If the target file already exists, and the -n option is not in effect, mcopy asks whether or not to overwrite the file. MSDOS subdirectory names are supported with either the '/' or '' separator. The use of the '' separator or wildcards will require the names to be enclosed in quotes to protect them from the shell. The mcd command may be used to establish the device and the current working directory (relative to MSDOS), otherwise the default is A:/. SEE ALSO
mcd(1), mread(1), mwrite(1) BUGS
Unlike MSDOS, the destination directory may not be omitted. The '+' operator (append) from MSDOS is not supported. No other Mtools command requires the use of a drive letter designation on MSDOS files. local MCOPY(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Mac OS X & Unix.

Are the Terminal commands used in Mac OS 10.1.3 the same as those found on a real Unix system? if they are, what book would you recommend as a terminal refferance guide? I already have 'The Missing Manual' by O'Reilly, but there ain't much in terms of managing the system via the terminal :( ... (9 Replies)
Discussion started by: LAdesign
9 Replies

2. HP-UX

Bouncing Unix Servers

Hi there, I was wondering if any of you good people out there could answer these question: A - why Unix servers are bounced once a in while in commercial environments? B - in what circumestances Unix Server are bouced? Many thanks for your time. Kind regards MH (17 Replies)
Discussion started by: mhossien
17 Replies

3. Shell Programming and Scripting

change small letters to capital

hi guys, I know this might be very simple for u but not for me. I simply want to print the active users, changeing the first letter in their names to capital. i guess sed it's useful but don't know how to find the correspondign capital letter and don't know how to change just the first... (16 Replies)
Discussion started by: atticus
16 Replies

4. Shell Programming and Scripting

replace word with using "sed" not work...

Hi, I have a xml text file with the following data, I would like replace F0</Number> to F</Number> only. i used sed to replace, but it not work!! anyone can help? <Number>11 20 03 22 23 21 91 00 F0</Number> <Number>12 20 03 20 99 21 91 20 F0</Number> <Number>10 21 03 21 78 21 92 27... (28 Replies)
Discussion started by: happyv
28 Replies

5. Shell Programming and Scripting

Split a Capital rich string

Hello all, I am new and straight away jump in with a question, sorry! I am working on a new Mediawiki site and have 1500 html pages I want to add to the system, I will mostly do them one by one as it needs some editing, but one thing I like to do in one go, I need to change ... (12 Replies)
Discussion started by: externalaw
12 Replies

6. Shell Programming and Scripting

Breaking a file into three new files, character by character

I am new to shell scripting, and need a script to randomly distribute each character from a file into one of three new files. I also need each character to maintain it's position from the original file in the new file (such that if a character is written to File 1, Files 2 and 3 have spaces... (10 Replies)
Discussion started by: foxcastle
10 Replies

7. Shell Programming and Scripting

Regular expression (regex) required

I want to block all special characters except alphanumerics.. and "."(dot ) character currently am using // I want to even block only single dot or multiple dots.. ex: . or .............. should be blocked. please provide me the reg ex. ---------- Post updated at 05:11 AM... (10 Replies)
Discussion started by: shams11
10 Replies

8. Shell Programming and Scripting

Help Unix script

Hi all Unix gurus, I am new to scripting in Unix. I need help to do do the following: I have a directory that contain multiple daily backups of multiple systems with this format: sys1. sys1. sys2. sys2. (11 Replies)
Discussion started by: e_mikey_2000
11 Replies

9. Shell Programming and Scripting

Output no. of rows and total value of a file to a new file

I am relatively new to Unix and I would be grateful if someone could help me with the syntax of a script. I am trying to write a Unix script against the file ‘ajtest.dat’ (see below) so that it outputs the number of rows and total value of column 3 in a file called ‘aj1’ as follows: No. of... (11 Replies)
Discussion started by: ajmutley
11 Replies

10. What is on Your Mind?

How to become good UNIX engineer

Maybe my question is quite stupid , but how to become good UNIX engineer. What to read , how to practice ? What a good engineer must know to call himself engineer . :cool: (14 Replies)
Discussion started by: solaris_user
14 Replies

11. UNIX for Advanced & Expert Users

How to get access time of a file upto the precision of seconds?

Hi , How can I get the last access time of a file upto the precesion of seconds in Unix. I cannot use stat as this is not supported. (10 Replies)
Discussion started by: kanus
10 Replies

12. Post Here to Contact Site Administrators and Moderators

Requesting a new forum

Hi admins and moderators!! Happy new year and merry Christmas :D Well, I have been here a few months now as a registered member and may be 6-7 years that I got numerous help directly and indirectly from this site as a guest. really has a vast collection of posts on wide variety of... (15 Replies)
Discussion started by: admin_xor
15 Replies

13. Shell Programming and Scripting

Use sed to append text to filenames if text not already present

I have some html with hrefs that contain local links to pdf filenames. These filenames should have standardised names, i.e. there should be a label prior to the ".pdf" filename suffix. There can be many of these links on a single line of text and some may already have the label. For example ... (13 Replies)
Discussion started by: adb
13 Replies

14. UNIX for Dummies Questions & Answers

Problems removing files with semicolons in the filename

There are some 40 files created by accident with filenames with semicolons, as well as other non-printable characters. I can not find a correct way to delete them. This is what I tried: bash-2.03# ls bad|head -1 000025;001;1377795616; bash-2.03# rm "bad/000025;001;1377795616;???" rm:... (17 Replies)
Discussion started by: migurus
17 Replies

15. Shell Programming and Scripting

Handling filenames with spaces

I'm trying to handle some files with spaces in their name using "" or \ . Like "file 1" or file\ 1. My current confusion can be expressed by the following shell script: #!/bin/bash touch "file 1" "file 2" echo -n "ls: " ; ls echo --- for file in "file 1" "file 2" ; do echo $file... (9 Replies)
Discussion started by: Ralph
9 Replies