LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What does the colon(:) mean? (https://www.linuxquestions.org/questions/linux-newbie-8/what-does-the-colon-mean-4175481821/)

murdock9999 10-23-2013 01:53 AM

What does the colon(:) mean?
 
Hi,

I'm running DDS Java example with;

"java -classpath $OSPL_HOME/jar/dcpssaj.jar:classes HelloWorldDataPublisher"

command.

I know the classpath part well but what does the ":" (colon sign) mean in the middle of the command?

The folder I'm running this example has a folder named "classes" in it and there is a HelloWorldDataPublisher.class file in the classes folder.

I searched about it and read the java docs but can't find anything.

Thanks.

ilesterg 10-23-2013 02:14 AM

It acts as a delimiter, you can specify multiple paths by using a delimiter.

murdock9999 10-23-2013 02:16 AM

I see thank you very much :)

ilesterg 10-23-2013 02:23 AM

No problem. and welcome to LQ! :)

TenTenths 10-23-2013 02:49 AM

Not to be pedantic, : is a colon. ; is a semicolon.

They do have a significant difference as ; can be used to separate commands on a shell line.

murdock9999 10-23-2013 02:58 AM

You're right sorry, I edited my first message :)

JJJCR 10-23-2013 04:47 AM

Quote:

Originally Posted by TenTenths (Post 5050767)
Not to be pedantic, : is a colon. ; is a semicolon.

They do have a significant difference as ; can be used to separate commands on a shell line.

Wow..bright eyes TenTenths.. ;) good catch.


All times are GMT -5. The time now is 08:14 PM.