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.
尝试将导入文件路径附加到文件,不起作用,这是一个简单的复制:
我试过haha="a/b/c/d/e"; sed -i '1s/^/"'$haha'"\n/' /tmp/processing.sh;了,它不起作用,并给了我这个错误: sed: -e expression #1, char 9: unknown option to `s'
haha="a/b/c/d/e"; sed -i '1s/^/"'$haha'"\n/' /tmp/processing.sh;
有人能帮忙吗?