Michael Best wrote: > Mike Kercher wrote: >> I need to copy a file (or actually a symlink) to every subdirectory >> on a path. >> >> I know that cp -s will do the copy I want, but how can I get it to go >> into every subdirectory? I've tried different iterations of ls to >> get a listing of directories only (recursively) without success. >> >> TIA >> >> Mike > > find <directory> -type d -exec echo cp <file> "{}" \; > > Remove the echo to do it for real. > > -Mike Thanks Mike and Donovan. That worked like a champ! I didn't even think of using find! Mike