这是一个创建于 4169 天前的主题,其中的信息可能已经有所发展或是发生改变。
function fcontent() {
grep -nHR --color=auto '$@' .
} #查找所有文件内容
这是我的函数,当我像这样调用 fcontent explain ,$@ 没有替换。
2 条回复 • 1970-01-01 08:00:00 +08:00
|
|
1
arbeitandy 2013-04-23 16:28:44 +08:00
用雙引號
#!/bin/bash function fcontent() { grep -nHR --color=auto "$@" . }
|
|
|
2
soonlai 2013-04-23 17:11:14 +08:00
不错,谢谢!
|