我正在尝试对 find -exec 操作执行多个 sed 操作。我的代码如下所示:
find . -name '*.html.haml' -exec sed -i '' 's/restaurant_id/company_id/g' && sed -i '' 's/restaurants/companies/g' && sed -i '' 's/restaurant/company/g' && sed -i '' 's/Restaurants/Companies/g' && sed -i '' 's/Restaurant/Company/g' "{}" \;
这似乎不起作用。我怎么能那样做?
错误:
find: -exec: no terminating ";" or "+"