Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 10 个目录中创建了一个 shell 脚本。
a/we.sh b/we.sh c/we.sh . . . .
如何更新 unix/Linux 中所有目录中 shell 脚本的更改。
您可以使用符号链接功能。ln对您创建的所有文件使用该命令。通过这种方式,您将更改一个文件并显示在每个链接路径中。要创建符号链接,您可以使用这个简单的命令 -ln -s script.sh sample.sh这sample.sh是将要创建的路径。
ln
ln -s script.sh sample.sh
sample.sh
您可以使用
find . -iname 'we.sh' -type f -exec cp '/path/to/modified/script/we.sh {} \;
我试图在表格中的一个元素中包含一个链接。
当我在没有它的情况下进行链接时,它可以正常工作,但是当我想将它作为表格的一部分包含时,它就不起作用了。
这行代码有效:
for(int i=0;i<tableWeb.size()