Hi,
try these lines
Code:
#!/bin/bash
for name in `tree -ifp | grep "\[-..x" | tr -s " " | cut -d " " -f2`
do
rm $name
done
will give you list of all dirs recursively including all subdirectories with FAP and relative pathname
will fetch only executable files from FAP with relative pathname
will squeeze the space between the two columns i.e. FAP and path to file.
will fetch the second column i.e. relative path and filename.
these filenames with relative pathname are saved in
variable and then the
command removes those file.
Try and see..
Gopal
