我有一個名爲list.csv的文件中的URL列表。grep和exec問題
我希望到grep在文件中模式「.PHP」,和foreach,執行curl命令。然而
grep '.php' list.csv -exec curl -I {} \;
,我收到錯誤:
我想這
grep: .php: No such file or directory
grep: curl: No such file or directory
grep: {}: No such file or directory
grep: ;: No such file or directory
我顯然不是用grep和exec正確的,但不能看到這個問題。
謝謝,這是我一起去的那個! – pokero
+1,但xargs調用錯誤:'grep'\ .php'list.csv | xargs -l1 curl -I' –