ss at saqibshaikh.com
Sun Dec 23 17:31:23 EST 2001
thanks very much for the help.
obviously reading through the help i missed the bit about using a $ - maybe
because i had punctuation too low. thanks once again.
----- Original Message -----
From: "Tyler Spivey" <tspivey8 at home.com>
To: <speakup at braille.uwo.ca>
Sent: Sunday, December 23, 2001 10:24 PM
Subject: re: for command
> an example: to tail all the files in the current directory,
> you can do tail *, also:
> for i in *; do tail $i;done
> you can do (in bash):
> help for
> and it gives you:
> for: for NAME [in WORDS ... ;] do COMMANDS; done
> The `for' loop executes a sequence of commands for each member in a
> list of items. If `in WORDS ...;' is not present, then `in "$@"' is
> assumed. For each element in WORDS, NAME is set to that element, and
> the COMMANDS are executed.
> for i in *.txt;do cat "testing" >>$i;done
> would append "Testing" to the files in the current directory ending with
> hope this helps.
> Speakup mailing list
> Speakup at braille.uwo.ca
More information about the Speakup