1833013 Members
2717 Online
110048 Solutions
New Discussion

Re: Find command

 
SOLVED
Go to solution

Find command

Hi All,

I know this probably sounds like a stupid question but it's been driving me mad all afternoon.
How can I run a find in HPUX11 that searches for just link files, but also shows where they point to. I can find the files OK but I just want to print out where they go.

Thanks in advance,

Christian Briddon
9 REPLIES 9
Robin Wakefield
Honored Contributor
Solution

Re: Find command

Hi Christian,

How about:

find dir -type l | xargs ll

Rgds, Robin.

Jeff Machols
Esteemed Contributor

Re: Find command

try this

find / -type l | xargs ls -l
Darrell Allen
Honored Contributor

Re: Find command

Hi Christian,

find . -type l | xargs ls -l

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
G. Vrijhoeven
Honored Contributor

Re: Find command

Hi,

for i in `ls -R | awk '{ print $1}'
do
grep -q l $i
if [ "$?" -eq 0 ]
then
find / -name $i -print
fi
done

Gideon
Magdi KAMAL
Respected Contributor

Re: Find command

Hi,

Here your command :
# find / -type l ?? more

or

# find / -type l ?? tee searchFiles.log

Magdi
James R. Ferguson
Acclaimed Contributor

Re: Find command

Hi Christian:

How about something like:

# find /etc -type l -exec ls -als {} \;|more

Regards!

...JRF...
Helen French
Honored Contributor

Re: Find command

Hey,

what abt this:

# find dir_path -type l -exec ls -al {} \;

HTH,
Shiju
Life is a promise, fulfill it!
Joseph C. Denman
Honored Contributor

Re: Find command

find / -type l | while read line
do
ll $line
done

...jcd...
If I had only read the instructions first??

Re: Find command

Thanks everyone, I've given you all points and my problem is now solved.

Cheers,

Christian