Jun 6, 2002 #1 gotchausa Programmer Joined Jan 24, 2002 Messages 64 Location CA How I do find only directories (not files) that are soft links using the find command?
Jun 6, 2002 #2 toolkit Programmer Joined Aug 5, 2001 Messages 771 Location GB Something like: Code: find . -type l | xargs -i sh -c 'if [ -d {} ] ; then echo {} ; fi' Cheers, Neil Upvote 0 Downvote
Something like: Code: find . -type l | xargs -i sh -c 'if [ -d {} ] ; then echo {} ; fi' Cheers, Neil
Jun 6, 2002 Thread starter #3 gotchausa Programmer Joined Jan 24, 2002 Messages 64 Location CA Thank you! Can you explain what the xargs -i sh -c .. does as I havent come across this syntax before. Upvote 0 Downvote
Thank you! Can you explain what the xargs -i sh -c .. does as I havent come across this syntax before.