Create symbolic link from find

前端 未结 2 1061
野性不改
野性不改 2021-02-04 18:51

I\'m trying to create a symbolic link (soft link) from the results of a find command. I\'m using sed to remove the ./ that precedes the file name. I\'m doing this so I can paste

2条回答
  •  醉话见心
    2021-02-04 19:35

    Easier:

    Go to the folder where you want to have the files in and do:

    find /path/with/files -type f -name "*txt*" -exec ln -s {} . ';'
    

提交回复
热议问题