removing subdirectorys and only working with files (Bash Cookbook 5.8)
The Cookbook gives us
for FN in $*
do
echo changing %FN
chmod 0750
done
but that changes all. how can I change all files but subdirectorys? I was thinking of something like
ls -l | grep -v ^d but can't get it to work. I'm still learning about variables and how to use them. thanks in advance for your Patients.
|