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.
我需要在单行ls中运行一个命令cal
ls
cal
但我需要在不使用&和;符号的情况下编写它......
&
;
有什么办法可以写吗?
你可以使用反引号和回声
echo `ls` "`cal`"
双引号防止 echo 破坏cals 输出中的空白。
我想|会帮助你。为了逐页阅读包含许多文件的目录列表,我做了ls | more
|
ls | more