hi all, i'm using the following shell script to search under /usr/src dir for the uart_driver struct and freinds.....but it's not showing up. does this mean that this is not present in the source or is the script incorrect??? If this struct is not present then my driver won't compile as it uses it (it's just a sample driver for the 16550A UART which i'm making for learning purpose). Please help!! SHELL SCRIPT "findgrep.ksh" #!/bin/ksh if [ "$#" -lt 2 -o "$#" -gt 3 ] then echo "Usage: $(basename "$0") <directory> <pattern> [<file name>]" exit 1 fi directory="$1" if [ ! -d "$directory" ] then echo "Directory $directory_name does not exist" echo "Usage: $(basename "$0") <directory> [pattern]" exit 2 fi pattern="$2" if [ ! -z "$3" ] then file_pattern="$3" else file_pattern="*" fi find "$directory" -name "$file_pattern" | while read file_name do if [ -f "$file_name" ] then if [ ! -z "$(grep "$pattern" "$file_name")" ] then echo $file_name fi fi done I call it using $ findgrep.ksh /usr/src "uart_driver" "*.h" regards mandeep -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/