Can someone remind me how to search for files in Unix and have it search all directories below the current directory? If I want to find wurlod.dat but don't know where it is stored and I am in directory 'A' which has directiries 'B', 'C', and 'D'..and 'D' has 'E', I want to search A thru E for wurlod.dat
HPUX if it matters
Thanks,
general Unix search question (not DS)
Moderators: chulett, rschirm, roy
general Unix search question (not DS)
Byron Paul
WARNING: DO NOT OPERATE DATASTAGE WITHOUT ADULT SUPERVISION.
"Strange things are afoot in the reject links" - from Bill & Ted's DataStage Adventure
WARNING: DO NOT OPERATE DATASTAGE WITHOUT ADULT SUPERVISION.
"Strange things are afoot in the reject links" - from Bill & Ted's DataStage Adventure
-
- Premium Member
- Posts: 483
- Joined: Thu Jun 12, 2003 4:47 pm
- Location: St. Louis, Missouri USA
Hi Byron,
I think you can do:
So, it would look something like this:
if you're already in directory A
Hope this helps,
Tony
I think you can do:
Code: Select all
find <starting directory> -name <filename> -print
Code: Select all
find . -name wurlod.dat -print
Hope this helps,
Tony