xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

  • 投稿者:
  • 投稿カテゴリー:Linux

エラー内容

# find ./ -type f | xargs grep SearchWord
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

対処方法

# find ./ -type f -print0 | xargs -0 grep SearchWord
...