Hi and thanks.
Does anyone have a simple sample script that will loop through a directory and echo out the name of the file to the screen. Something like "ls" does, but what I want to do with this is be able to run a command against each file name.
I tried this, but I get nothing....
###############
for file
in $*
do
echo $file
done
###############
what am I doing wrong?
Does anyone have a simple sample script that will loop through a directory and echo out the name of the file to the screen. Something like "ls" does, but what I want to do with this is be able to run a command against each file name.
I tried this, but I get nothing....
###############
for file
in $*
do
echo $file
done
###############
what am I doing wrong?