LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   use of set -- (https://www.linuxquestions.org/questions/linux-newbie-8/use-of-set-4175478399/)

anandg111 09-24-2013 04:07 PM

use of set --
 
can someone please explain set -- ?

suicidaleggroll 09-24-2013 04:56 PM

http://www.linuxquestions.org/questi...te-4175478385/

Why not just run it and see?

Code:

$ date
Tue Sep 24 15:56:07 MDT 2013
$ set -- `date`
$ echo $1
Tue
$ echo $2
Sep
$ echo $3
24
$ echo $4
15:56:10
$ echo $5
MDT
$ echo $6
2013

Or, as with most Linux commands, you can read about it, what it does, what inputs it takes, etc., by running "man set".


All times are GMT -5. The time now is 04:10 AM.