general Unix search question (not DS)

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
datastage
Participant
Posts: 229
Joined: Wed Oct 23, 2002 10:10 am
Location: Omaha

general Unix search question (not DS)

Post by datastage »

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,
Byron Paul
WARNING: DO NOT OPERATE DATASTAGE WITHOUT ADULT SUPERVISION.

"Strange things are afoot in the reject links" - from Bill & Ted's DataStage Adventure
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

Hi Byron,

I think you can do:

Code: Select all

find <starting directory> -name <filename> -print
So, it would look something like this:

Code: Select all

find . -name wurlod.dat -print
if you're already in directory A

Hope this helps,
Tony
datastage
Participant
Posts: 229
Joined: Wed Oct 23, 2002 10:10 am
Location: Omaha

Post by datastage »

Thanks for your help


for some reason I always want to use ls thinking there should be a flag for that command to search through directories.
Byron Paul
WARNING: DO NOT OPERATE DATASTAGE WITHOUT ADULT SUPERVISION.

"Strange things are afoot in the reject links" - from Bill & Ted's DataStage Adventure
Post Reply