Find folders with specific name and no symlink pointing to them

Posted by Stefan on Stack Overflow See other posts from Stack Overflow or by Stefan
Published on 2010-04-03T11:20:13Z Indexed on 2010/04/03 11:23 UTC
Read the original article Hit count: 642

Filed under:
|
|
|
|

Hey guys,

I'm trying to write a shell script under linux, which lists all folders (recursively) with a certain name and no symlink pointing to it.

For example

I have /home/htdocs/cust1/typo3_src-4.2.11 /home/htdocs/cust2/typo3_src-4.2.12 /home/htdocs/cust3/typo3_src-4.2.12

Now I want to go through all subdirectories of /home/htdocs and find those folders typo3_*, that are not pointed to from somewhere.

Should be possible with a shellscript or a command, but I have no idea how.

Thanks for you help

Stefan

© Stack Overflow or respective owner

Related posts about linux

Related posts about shell