momo zone

调核人的blog

funny linux utils issue:grep

用grep ‘XXXX’ $(find /path/to/path)提示:
grep: invalid option — t
原因是find出来的文件中存在’-‘字符的情况。

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: