I need to know how to create the directory but with name
stp/wsSTP
.
I am using the
\
slash to desepeclize the charater but not able to do this.
I need to know how to create the directory but with name
stp/wsSTP
.
I am using the
\
slash to desepeclize the charater but not able to do this.
You want to create a directory with a / (slash) in the name?
I don't think you can do that, or know why on Earth you'd want to.
I am working on a script where I need to put a paramter with this name
stp/wsUAL
But I cannot create the direcotry..I am able to create it with name
stp\wsUAL
As an alternative, with
mkdir -p stp/wsUAL
you create both directories at once. Is that an option?
What output you are getting after making directory
mkdir stp\wsUAL
Can you just tell me the output after doing
ls
Hi
I am not getting the desired output..the code you gave me that is creating the wsUAL subdirecotry under stp directory ..I want the name of the directory should be
stp/wsUAL
.
'/' is a restricted character. You can not use it in a directory name.
Script around it and use something like '=s' for slash it that's unique in your situation. Let your script translate it back to '/' if needed.
Thanks all for your Support.I achieved my desired result with
sed 's#\\#/#g'
command.It changes the backslash
\
to forward
/
.When I enter
stp\wsSTP
from front end this code replaced it to my desired results.
Thanks