bash case statement question
David A. Bandel
david.bandel at gmail.com
Thu Sep 22 07:28:51 PDT 2011
On Wed, Sep 21, 2011 at 12:51, xDog Walker <thudfoo at gmail.com> wrote:
> Here is a question about bash: What does the .$1 mean in the following case
> statement (I know $1 means the first argument, but what does the . mean
> here?)
>
> case .$1 in
note that there is NO space between the "." and the $1, effectively
concatenating the two.
>
> and later on:
>
> .[aA])
> SAMPLE="blah";;
again, note that your statement is "dot"[blah] -- again, it matches
the concatenated . above.
You can remove the "." throughout, it will work the same.
>
> Thanks
>
> --
> I have seen the future and I am not in it.
> _______________________________________________
> Linux-users mailing list ( Linux-users at linux-sxs.org )
> Unsub/Password/Etc:
> http://linux-sxs.org/mailman/listinfo/linux-users
>
> Need to chat further on this subject? Check out #linux-users on irc.linux-sxs.org !
>
HTH,
David A. Bandel
--
Two things are infinite: the universe and human stupidity; and I'm not
sure about the the universe. -- Albert Einstein
Visit my web page at: http://david.bandel.us/
More information about the Linux-users
mailing list