Jun 6, 2002 #1 gotchausa Programmer Jan 24, 2002 64 CA How I do find only directories (not files) that are soft links using the find command?
Jun 6, 2002 #2 toolkit Programmer Aug 5, 2001 771 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 Jan 24, 2002 64 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.