How to make a directory name with '/' in it?

2010-05-16 Thread Peng Yu
I tried the following command to create a dir with '/' in the name.
But it only create a directory with name 'm'. Is there a way to make a
directory with '/' in the name?

mkdir m\/\/

-- 
Regards,
Peng



Re: How to make a directory name with '/' in it?

2010-05-16 Thread Chris F.A. Johnson
On Sun, 16 May 2010, Peng Yu wrote:

> I tried the following command to create a dir with '/' in the name.
> But it only create a directory with name 'm'. Is there a way to make a
> directory with '/' in the name?
> 
> mkdir m\/\/

   There are two characters that cannot be in a file or directory
   name: / and NUL.

-- 
   Chris F.A. Johnson, 
   Author:
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)



Re: How to make a directory name with '/' in it?

2010-05-16 Thread Clark J. Wang
On Sun, May 16, 2010 at 23:47, Peng Yu  wrote:

> I tried the following command to create a dir with '/' in the name.
> But it only create a directory with name 'm'. Is there a way to make a
> directory with '/' in the name?
>
> Seems like Mac OS X can have `/' in directory names.

mkdir m\/\/
>
> --
> Regards,
> Peng
>
>