Differences

This shows you the differences between two versions of the page.

part4 [2009/05/14 11:38]
nuin
part4 [2009/05/14 11:38] (current)
nuin
Line 286: Line 286:
done</code> done</code>
-That should do the trick. You can even type it from the command line. The //for// syntax in bash is very similar to C/C++ but it does not accept spaces, as all the variable assignments. When you assigning a variable value in bash you omit the dollar sign and when you are reading the variable value you access it with the dollar sign, like in the line that runs the script. A //for// loop in bash starts with a <code>do</code> command and ends in a //done// command, not brackets or parenthesis involved. The //echo// at the end helps adding a separating blank line after each random set.+That should do the trick. You can even type it from the command line. The //for// syntax in bash is very similar to C/C++ but it does not accept spaces, as all the variable assignments. When you assigning a variable value in bash you omit the dollar sign and when you are reading the variable value you access it with the dollar sign, like in the line that runs the script. A //for// loop in bash starts with a //do// command and ends in a //done// command, not brackets or parenthesis involved. The //echo// at the end helps adding a separating blank line after each random set.
 
part4.txt · Last modified: 2009/05/14 11:38 by nuin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki