On Mon, 2003-09-22 at 11:43, Richard Miller wrote:
> Can someone help me with the syntax of a FOR command in the tsch shell 
> (I am on Mac OS X).  I remember being able to use a FOR statement in 
> DOS to execute the same command on every file in a directory, like this:

Mac OS X has switched to Bash with 10.3

Bash is a much better shell, here's how to do what you want in Bash:

for FILE in *
do
some_action $FILE
done

Alternatively, in both bash or tcsh, you could use find. What you want
to do decides the best way to do it.

-- 
Stuart Jansen <[EMAIL PROTECTED], AIM:StuartMJansen>

#define FALSE 0 /* This is the naked Truth */
#define TRUE  1 /* and this is the Light   */ -- mailto.c

Attachment: signature.asc
Description: This is a digitally signed message part

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to