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
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?
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
Summary: Hi, I am new to Linux.Just a few days old. I have noticed that in Linux a mount command succeeds only if one parameter is a block or a character special file. Whereas in HP and Sun, I can even issue...
Summary: 1 - ifconfig from a shell/command line gives you all the interface info 2 - Windows offers "Services for Unix" (http://www.microsoft.com/windows/sfu/default.asp) and it's free (now). However, if you'...
Summary: Try http://www.uwsg.indiana.edu/usail/external/install-guide/gs.html It really helped me out not only to rediscover the commands, but it's just a really useful and comprehensive manual on the lin...