将猫附加到命令

时间:2017-09-21 11:25:32

标签: linux ubuntu terminal cat

我有一个脚本来检索mac地址,但它没有正确返回命令。

chromium-browser --noerrdialogs --disk-cache-dir=/dev/null --no-first-run --ignore-certificate-errors --test-type --kiosk \"http://x.com/getscreen?mac=$(cat /sys/class/net/eth0/address)\"" 

有什么东西我做错了我希望它将cat命令的输出用作字符串

1 个答案:

答案 0 :(得分:1)

问题是你在命令行的末尾添加了一个额外的"

干杯

相关问题