Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find command

Status
Not open for further replies.

gotchausa

Programmer
Jan 24, 2002
64
CA
How I do find only directories (not files) that are soft links using the find command?
 
Something like:
Code:
find . -type l | xargs -i sh -c 'if [ -d {} ] ; then echo {} ; fi'
Cheers, Neil :)
 
Thank you! Can you explain what the xargs -i sh -c .. does as I havent come across this syntax before.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top