如何在引号、单引号或反引号中使用通配符或任何其他特殊字符?
和
如何使 Linux 不按字面意思理解它? 例如
echo "This is my list of file ls -l"
例如,我知道他们是另一种方式
echo "This is my list of file" ; ls -l
但我试图将 ls -l 保留在 echo 中。
最佳答案
你可以使用:
echo "This is my list of file $(ls -l)"
这将在 echo 语句中打印 ls -l 的输出。
关于linux - 如何在引号、单引号或反引号中使用通配符或任何其他特殊字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36919747/