07-15-2011
question on blackslashes and slashes in directories
Since I'm usually on windows I've came across different shells like Cygwin, Hamilton, and MKS. I've been working in csh most of the time, so porting scripts from one shell to another can be fairly annoying and confusing.
When specifying a directory I noticed that certain shells do not recognize either '/' or '\' in a directory. Sometimes because one of those is some sort of feature. ex. drive:/folder/ vs drive:\folder\
Is there a way to have both '/' and '\' recognized in a directory, or is this something that is more specific to the shell used and not something I can configure on my own????
Thank you!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey,
This is probably going to sound like an immensely stupid and dull question, but can someone please tell me whether the forward slash on the web address (http://) signifies that it is running on UNIX?
hanks (1 Reply)
Discussion started by: steverocliffe
1 Replies
2. Shell Programming and Scripting
Substituting the / for the \ I came up with this:
sed s/\\\\usr\\\\qm/\\\\\\\\qmi/g
Can anyone explain to me please, why I have to pass the slash four times?
:confused: (2 Replies)
Discussion started by: Shakey21
2 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone! :)
I've been asked to write an article breaking down the basics of UNIX password information etc., and I've come across something in which I cannot find a definition for within Google.
Very simply, can anyone tell me what the difference is between a standard UNIX password, and... (4 Replies)
Discussion started by: hellz
4 Replies
4. UNIX for Dummies Questions & Answers
when I execute a command in like "run.sh," I can run it two ways:
./run.sh
or
. run.sh
What is the difference? (1 Reply)
Discussion started by: DarkLord
1 Replies
5. UNIX for Dummies Questions & Answers
I'm really new to Unix and its commands. I tried to move a file from the home directory to another one but I didn't type the full name of the new directory. I think the computer created another directory in the home directory and put it in there. However, now I can't access it and it doesn't even... (3 Replies)
Discussion started by: scheng12
3 Replies
6. Programming
how is it possible for a directory to be empty and still have a size greater than 0 in bytes...
i made a shell script that shows info about all files/directories and this is what came up
the last one is the size, here its showing 1024
in the for loop i did something like
for h in * .*; do
... (4 Replies)
Discussion started by: omega666
4 Replies
7. Cybersecurity
When I try to access my website's Administrator page (mysite.com/administrator), I'm redirected to (mysite.comadministrator), as if the slash was removed from the URL
The funny thing is that I can access it if I enter 2 slashes (mysite.com//administrator)
Any ideas of what might be causing it? (4 Replies)
Discussion started by: rlopes
4 Replies
8. Shell Programming and Scripting
I have got the following contents and please can you advise me on how to extract the following data that appears between the very first slashes.
Thanks
i.e 576 , 10000, 1299
3/576/GPP///////NONE/0
50/10000/GPP///D4////GPP/0
234/1299/GPP///////NONE/0 (3 Replies)
Discussion started by: Sudhakar333
3 Replies
9. Programming
I want to print 4052 slashes using this C program.
#include <stdio.h>
void main()
{
int i;
for (i=0; i<4052; i++)
printf ("/");
}
When i compile this via gcc am getting this error :
http://gyazo.com/e0403e4789575d181d1695f9db3e6d6e.png
Can anyone point out what am doing wrong? (15 Replies)
Discussion started by: vish6251
15 Replies
10. UNIX for Dummies Questions & Answers
Hi,
First server every thing is working but keeps crashing so to be on the safe side created second server and moved all the files. But I notice there is a " dot " at the end. See below. Not sure what that means. Also getting 403 on Apache. Please see below. Thanks you so much.
ls -l... (4 Replies)
Discussion started by: samnyc
4 Replies
LEARN ABOUT DEBIAN
suspend
suspend(1) User Commands suspend(1)
NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)
SunOS 5.10 15 Apr 1994 suspend(1)