Unix is very permissive in what it accepts but quite restrictive in what it recommends. Your first reply seemed to imply Windows was too permissive while Unix wasn't. The reality is the opposite. Windows has more restrictions and peculiarities like refusing a file to be named null.h or com0.c, having a colon in its name, having a space as its last character and so on, not to mention the way it preserve case but doesn't allow files with the same name but different cases to stay in the same directory.
In any case, your example obviously violates the POSIX recommendations but is still a valid Unix filename. It is obviously unacceptable to Windows and possibly other OSes and defeat non rock-solid scripts.
If your backup software has issues processing this filename, that's a bug or a limitation of the storage format it uses, the OS or the file system. The venerable tar utility has no issues handling it:
About your last request, here are the numbers I got:
I tried looking for the answer online and came up with only a few semi-answers as to why file and directory names are case sensitive in Unix. Right off the bat, I'll say this doesn't bother me. But I run into tons of Windows and OpenVMS admins in my day job who go batty when they have to deal... (3 Replies)
I have files on my unix boxes that users have created with spaces.
Example: /tmp/project plan
ls -l "/tmp/project plan" works fine.
$/tmp>ls -l "/tmp/project plan"
-rw-r--r-- 1 root other 0 Jan 31 12:32 /tmp/project plan
I created a file called test and put just the... (2 Replies)
Hey guys i'm creating a dos style rename script, so if a user types say q14.* as the 1st param and b14.* as the 2nd and will rename all q14 files to b14 but keep the extensions, so i've developed nearly the full script "i think", if i use echo(echo "if $1 had been renamed it would now be... (3 Replies)
I am trying to figure out a sort of Motivational line that I could
write as a short unix command... I don't know too much but something like Get everything you want in life
sudo (get everything) (you want?) (life directory)
Any ideas?
Thank You very much
Brad (4 Replies)
I have searched throught a host of threads to figure out how to rename mutiple files at once using a script.
I need to convert 200+ files from:
fKITLS_120605-0002-00001-000001.hdr to eStroop_001.hdr
fKITLS_120605-0002-00002-000002.hdr to eStroop_002.hdr
and so forth....
What is... (5 Replies)
This is on a RHEL 6 box with bash 4.1.2
I'm trying to to use grep to only find those lines containing matches that form whole words.
The -w option works fantastic unless of course that word has a hyphen.
The problem is I will get a hit on "test-group" which is a good thing, but I will also... (3 Replies)
Hello,
I have a file name in the below format and have to append the date as _$currdate.
kchik_UK_lo.txt_$currdate.
The above should be the format and I dont want to put entire filename as above in the code, but it should give me the output as the above filename.Can anyone please help... (7 Replies)
Dear all,
I have a database of compound words. I want to retain only strings with a single hyphen and identify those strings which have more than one hyphen. I am giving an example below
test-test
test-test-test
test-test-test-test-test
good-for-nothing
The regex/script should remove all... (11 Replies)
Hi,
as I mentioned in this thread(https://www.unix.com/shell-programming-and-scripting/280737-awk-function-return-permutations-n-items-out-m.html), a helpful coding style may improve overall value and support for people who come here and want to learn things the participants from unix.com have... (2 Replies)
Discussion started by: stomp
2 Replies
LEARN ABOUT MINIX
kermit
This is a slightly lobotomized kermit. The help command, thescript facility, and the automatic dial support have been re-
moved. The ? and ESC commands still work, so there is still rea-
sonable built-in help. The only V7 kermit feature that does not
work is the ability to see whether there are input characters
waiting. This means that you will not be able to ask for statusduring a file transfer (though this is not critical, because ker-mit prints a dot every so often and other special characterswhenever there is an error or timeout). Start kermit, and thentype the following to open a 2400 baud session, for example:
(It is more convenient if you put these commands in .kermrc in
your home directory, so that they get done automatically wheneveryou run kermit.) This will connect you to the modem or whateveron the serial port. Now log into the other system. When you
want to transfer files, run kermit on the other system. To it,type This puts its kermit into a sort of slave mode where it ex-pects commands from the kermit running on your MINIX system. Nowcome back to the command level on MINIX kermit, by typing the es-cape character followed by c. (Kermit will tell you the currentescape character when you do the connect command.) At this pointyou can issue various commands. Your kermit will coordinatethings with kermit on the other machine so that you only have to
type commands at one end. Common commands areFilenames can include wildcards. By default, kermit works in a
system-independent, text mode. (In effect it assumes that thewhole world is MS-DOS and converts end of line and file names ac-cordingly.) To send binary files, you will want to type on bothends before starting any transfers. This disables CR LF to new-line conversion. If both of your systems are some flavor of
UNIX, you might as well put this in .kermrc on both ends and runin binary mode all the time. Also, if both systems are UNIX it
is recommended that you use on both ends. This causes it to keepfile names unchanged, rather than mapping to legal MS-DOS names.Here is a typical .kermrc for use onOn the other end of the line, for example, the host at your localcomputer center to which you want to transfer files, a typicalprofile might be:
Kermit has many other options and features. For a pleasant andhighly readable description of it, see the following book:
Title: Kermit: A File Transfer Protocol
Author: Frank da Cruz
Publisher: Digital Press
Date: 1987
ISBN: 0-932376-88
For information about recent kermit developments, versions forother systems, and so forth, please contact:
Christine M. Gianone
Manager, Kermit Development and Distribution
University Center for Computing Activities
Columbia University
612 West 115th Street
New York, N.Y. 10025
Over 400 versions of kermit are available, so it is likely thereis one for any computer your system might want to talk to. Co-lumbia University also publishes a newsletter about kermit thatcan be requested from the above address.