RE: writing special characters

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: todd hewett
Date:  
To: plug-discuss
Subject: RE: writing special characters
Hi Mikey,

A general convention for naming files that seem to work is use alphanumeric
characters, underscores,and periods in filenames

I think what the book is trying to show you is the use of an escape
character.

\ is an escape character.

Try man bash and search for escape

Hope this helps some.

Todd

-----Original Message-----
From:
[mailto:plug-discuss-admin@lists.plug.phoenix.az.us] On Behalf Of Mikey
Sent: Tuesday, January 25, 2005 8:23 PM
To:
Subject: writing special characters

Gentlemen,

I am going through another Linux book and one of the exercises wants me to
create a file, and then vopy that file to a new name.
Here are the procedures done:

touch andor
mv andor 'and\/or'

but it doesn't work. The error it gives is:

mv: cannot move `andor' to `and\\/or': No such file or directory

when I attempt it a backslash rather than the quote (mv andor and\\/or & mv
andor and\\\/or) it says the same thing. The odd thing that I notice is that

out of all of these the error message remained exactly the same (this
includes what they say they cannot movew the subject file to.

ls -l for this directory is:

 -rwxrwxrwx    1 plaything plaything        0 2005-01-25 18:31 andor
 -rwxrwxrwx    2 plaything plaything        0 2005-01-25 18:29 jh
 -rwxrwxrwx    2 plaything plaything        0 2005-01-25 18:29 X


The file 'X' is supposed to be '-X' but the error I get is:

cp X '-X'
cp: invalid option -- X

What is the problem?

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss