首先来看看这个问题: Bash or GoogleCL: new line in a string parameter击:变量在单引号
我想添加一个变量$ {日期}进入“摘要”现在:
google youtube post ~/videos/cat-falls-down-stairs.avi Comedy \
--tags 'currency of the internet' \
--summary $'Today is ${date}. Poor whiskers takes a tumble.\nShe'\''s fine, though, don'\''t worry.'
但变量不会在bash中单引号内部展开。
可以做到这一点吗?
注意:GoogleCL是一个用python编写的命令行程序。我使用Python 2.6在Ubuntu 10.10上。
@ This solution is BRILLIANT! – DocWiki