How can I display a list of current environment variables and also recognized regular expressions....

Raseel Bhagat raseelbhagat at gmail.com
Thu May 1 19:55:57 UTC 2008


Ho John

On Fri, May 2, 2008 at 1:11 AM, John Toliver <john.toliver at gmail.com> wrote:

>  I'm looking for the equivalent of the "SET" command in windows.  also if
> in windows if I typed something like "c:\copy *.* d:\" where can I find a
> list of "*.*" that linux recognizes.  I'm trying to get the basics of
> scripting.  I'm sorry I don't know any more useful ways of describing it.
>
> Basically if I type cp *.*(what I mean is "all files") source destination.
>

In Linux yo u can do a similar thing with a slight option change :
cp /home/john/* /usr/local/

Here giving a single "*" is equivalent to saying "*.*" since it is not
necessary to mention file extension in regular expressions. Of course, "*.*"
is not wrong either

For seeing all the environment variable , just type "env" on the prompt.

To set an environment variable : export MYNAME=raseel
You can also see the above by : echo $MYNAME

Hope this helps

Thanks,
Raseel
http://www.raseel.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080502/b8f71e3a/attachment.html>


More information about the ubuntu-users mailing list