如果我有一个 shell/python 脚本,它使用 sed 根据用户输入修改文件,然后两个用户同时或大约运行相同的脚本。同时,“sed”线程安全吗?或者这可能不是问题,因为第一个线程打开的 file_descripor 无论如何都将用于锁定文件?谢谢
linux sed python
linux ×1
python ×1
sed ×1