Computing.Net > Forums > Linux > Linux . (a period) command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Linux . (a period) command

Reply to Message Icon

Name: jaymehta18
Date: August 27, 2007 at 04:21:11 Pacific
OS: Win XP
CPU/Ram: intel dual core with 256M
Product: HP
Comment:

Hi, there is a command in Linux - "." (a period) which is used to read a configuration file with its parameters inside. say for eg: if file contents are
Name=Name1
Age=21
then on executing the command . /filepath, we can find the values of Name and Age directly using echo ${Name} and ${Age}.

Is there anything equivalent for this in windows? i want to read the same file the same way? Any ideas will be helpful.

If not then is there any way to find out the values of it?




Sponsored Link
Ads by Google

Response Number 1
Name: jefro
Date: August 27, 2007 at 14:19:05 Pacific
Reply:

I can't remember now after I started this.

I was thinking like type filename. Is that what you want.

I read it wrong and answer it wrong too. So get off my case you goober.


0

Response Number 2
Name: Razor2.3
Date: August 28, 2007 at 18:36:19 Pacific
Reply:

Heh. Asking on the Linux board about WinNT scripting. I like that.

First, . runs a script from the current shell (no fork), so while your description is accurate, it's also wrong. (Proof: add echo * as the last line and run it.)

Second, you'll need to do something like this:
FOR /F "usebackq delims=" %%A IN (file) DO SET %%A


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Linux . (a period) command

Mount www.computing.net/answers/linux/mount/14196.html

a few linux question www.computing.net/answers/linux/a-few-linux-question/25204.html

Installing crap in Linux????????/ www.computing.net/answers/linux/installing-crap-in-linux/913.html