Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shell脚本:打印句子的命令_Shell - Fatal编程技术网

Shell脚本:打印句子的命令

Shell脚本:打印句子的命令,shell,Shell,我找不到在shell脚本中打印句子的命令。 比如谷歌 firefox http://www.google.com [[command that writes "hello world" on the searchbar]] 结果应该是 这应该很简单,但我找不到它根据firefox手册,您可以添加以下选项: -search term Search for term with your default search engine. 如果默认搜索引擎为google,则此命令将起作

我找不到在shell脚本中打印句子的命令。 比如谷歌

firefox http://www.google.com    
[[command that writes "hello world" on the searchbar]]
结果应该是


这应该很简单,但我找不到它根据firefox手册,您可以添加以下选项:

-search term
     Search for term with your default search engine.
如果默认搜索引擎为google,则此命令将起作用:

firefox -search "hello world"

您可以将
q
查询参数直接提供给
URL
中的
search

firefox "https://www.google.com/search?q=hello+world"

问题描述不仅仅是重写,而是一个与前一个完全不同的问题规范。建议在这些情况下创建一个新问题,否则任何现有答案或评论都将过时,并被错误地否决为不相关。请不要编辑您的问题,使现有答案无效。相反,创建一个新问题。