Bash script to automatically create symlinks to subdirectories in a tree

后端 未结 3 1777
借酒劲吻你
借酒劲吻你 2021-01-14 14:54

Ok, this is my third try posting this, maybe I\'m asking the wrong question!!

It\'s been a few years since I\'ve done any shell programming so I\'m a bit rusty...

3条回答
  •  清酒与你
    2021-01-14 15:45

    I think you can do this all within your find command. OTTOMH:

    find -mindepth 3 -maxdepth 3 -type d -name "*New Parts*" -exec ln -s -t /cygdrive/c/Views {} \;
    

    Hope I remembered that syntax right.

提交回复
热议问题