|
file command?
I don't know how well it works in a script, but I have used the "file" command to tell a file type.
# file filename
filename :ascii text
# file script.sh
script.sh :commands text
It works from the command line very well.
Here is another suggestion...
Are all of your files in one directory? If so, you can do a for loop.
for name in `ls *`
do
test -f $name
some other command
some other command
done
__________________
My brain is your brain
Last edited by Kelam_Magnus; 02-04-2002 at 11:46 AM..
|