cyberciti.biz — Most of the other tutorials on Linux shell scripting are either too basic or skip too many important intermediate steps. The concept of this tutorial is to maintain a balance between these two. It covers many of the real life examples of shell scripting that are missing from many other tutorials.
Sep 5, 2006 View in Crawl 4
kimosSep 5, 2006
Write a script to make one!!
jpohlSep 5, 2006
Its interesting that he uses vi/vim as the editor but doesn't explain the vim keystokes to write his examples. :) using vi is more of a learning curve than shell scripting.wget -rv <a class="user" href="http://www.cyberciti.biz/nixcraft/linux/docs/uniqlinuxfeatures/lsst/">http://www.cyberciti.biz/nixcraft/linux/docs/uniqlinuxfeatures/lsst/</a>:)
gcauthonSep 5, 2006
No, you are wrong and AKX1 is correct. The "dot command" is invoked like so:. <command>The dot command executes the command in the same environment as the shell that invoked it. So if an environment variable is set or changed then the change will be visible to the parent shell.Consider this example:./blahThis is simply executing a command in the current directory and is completely different than the dot command (or source command in CSH).
Closed AccountSep 5, 2006
...and then it would be marked as inaccurate. See my post below, and this:<a class="user" href="http://www.digg.com/apple/How_to_access_hidden_games_in_your_macs_terminal">http://www.digg.com/apple/How_to_access_hidden_games_in_your_macs_terminal</a>Nothing wrong with this post or the one above. Why does this even have to be an issue? Linux and OSX are both clearly not mainstream and not just what some suit tells you to use.
gcauthonSep 5, 2006
I don't know who keeps digging down all of the posts here, but whoever it is does not know anything about unix. Here is a simple example that anyone can use to illustrate how the dot command works:$ cat test.sh#!/bin/shTEST_VAR=123echo TEST_VAR=$TEST_VAR$ ./test.shTEST_VAR=123$ echo $TEST_VAR$ . ./test.shTEST_VAR=123$ echo $TEST_VAR123If you don't understand after that, then stay away from unix. Oh, and digg me down again before you go.
rivviepopSep 5, 2006
Y'all want to really pay attention to the more "official" guides (official only in that the whole world contributes to them):Bash Guide for Beginners<a class="user" href="http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html">http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html</a>Advanced Bash-Scripting Guide<a class="user" href="http://tldp.org/LDP/abs/html/index.html">http://tldp.org/LDP/abs/html/index.html</a>Both hosted at the ubiquitous The Linux Documentation Project (tldp.org).
Closed AccountSep 6, 2006
esc = Stop text insertioni = insert text at cursor:w = save:q = quit:wq = save and quitdd = delete linePretty much all you need to know for this.