From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from femail13.sdc1.sfba.home.com ([24.0.95.140]) by speech.braille.uwo.ca with esmtp (Exim 3.32 #1 (Debian)) id 16IH2e-0007cz-00 for ; Sun, 23 Dec 2001 17:24:24 -0500 Received: from tspivey8 ([24.76.54.195]) by femail13.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20011223222426.RRXR7324.femail13.sdc1.sfba.home.com@tspivey8> for ; Sun, 23 Dec 2001 14:24:26 -0800 To: speakup@braille.uwo.ca From: Tyler Spivey Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Subject: re: for command Message-Id: <20011223222426.RRXR7324.femail13.sdc1.sfba.home.com@tspivey8> Date: Sun, 23 Dec 2001 14:24:26 -0800 Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.7 Precedence: bulk Reply-To: speakup@braille.uwo.ca X-Reply-To: Tyler Spivey List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: 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. so, for i in *.txt;do cat "testing" >>$i;done would append "Testing" to the files in the current directory ending with .txt. hope this helps.