This commit is contained in:
gferg 2000-06-23 20:17:41 +00:00
parent 70a334a970
commit 0b5e3a56c8
1 changed files with 30 additions and 16 deletions

View File

@ -466,6 +466,18 @@ Loops for, while and until
for loop would be to use it to match only certain files on the previous for loop would be to use it to match only certain files on the previous
example example
<p> <p>
</sect1>
<sect1>
C-like for
<P> fiesh suggested adding this form of looping. It's a for loop
more similar to C/perl... for.
<tscreen><verb>
#!/bin/bash
for i in `seq 1 10`;
do
echo $i
done
</verb></tscreen>
</sect1> </sect1>
<!-- while --> <!-- while -->
<sect1> <sect1>
@ -663,6 +675,7 @@ Misc
<P> ls -l /usr/local/sbin/bash <P> ls -l /usr/local/sbin/bash
<P> (can't think of any other dirs offhand... i've found it in <P> (can't think of any other dirs offhand... i've found it in
<P> most of these places before on different system). <P> most of these places before on different system).
<P> You may try also 'wich bash'.
</sect1> </sect1>
<!-- Capturing a commands output --> <!-- Capturing a commands output -->
@ -968,14 +981,15 @@ About the document
<item> Laurent Martelli for translating this document to French (soon here the URL) <item> Laurent Martelli for translating this document to French (soon here the URL)
<item> Felix Hudson for writing the <it/renna/ script <item> Felix Hudson for writing the <it/renna/ script
<item> Kees van der Broek (for sending many corrections) <item> Kees van den Broek (for sending many corrections)
<item> Mike (pink) made some suggestions about locating bash and testing files <item> Mike (pink) made some suggestions about locating bash and testing files
<item> fiesh make a nice suggestion for the loops section.
</itemize> </itemize>
</sect1> </sect1>
<sect1> <sect1>
History History
<p> Samples added on string comparison. <p> Samples added on string comparison.
<p> v0.8 More little additions.
<p> v0.7 More corrections and some old TO-DO sections written. <p> v0.7 More corrections and some old TO-DO sections written.
<p> v0.6 Minor corrections. <p> v0.6 Minor corrections.
<p> v0.5 Added the redirection section. <p> v0.5 Added the redirection section.