参考链接:https://unix.stackexchange.com/questions/23179/how-to-send-variable-to-an-inline-shell-script
to=
输出2333,没有to指向的路径。
解决方案:把to变成环境变量。
to=$(pwd)/table.txt |
输出:
2333
2333 /home/searchstar/test/test/table.txt
参考链接:https://unix.stackexchange.com/questions/23179/how-to-send-variable-to-an-inline-shell-script
to=
输出2333,没有to指向的路径。
解决方案:把to变成环境变量。
to=$(pwd)/table.txt |
输出:
2333
2333 /home/searchstar/test/test/table.txt
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo