Recursive looping through files and directories

hi;
i need a script which will go to all directories and subdirectories and print the filenames as follow;
here i m printing only files listing in current directory
reason i m doing this is coz i want to perform some operations according to filename achieved so cant use find command;

#!/bin/bash
LOG_DIR="/home/fstl/testShell"
cd $LOG_DIR
for f in *
do
  filename=$f
  echo "$filename"
done

thnks;

find LOG_DIR -type f

Hi
i need this variable somewhere;

filename=$f

so that i will directly perform an action on it/commands on it
so find wont do much.

 
find LOG_DIR -type f | while read filename; do echo $filename; done

thnks u so much..:slight_smile: