1. 批量刪除文件中的某一個行
find ./app_dir/ -name "*.sh"|xargs sed '/--memory.*/d'
刪除文件中包含--memory字符串的行
2. curl 發送post請求,參數從文件讀取
curl 'http://localhost:8080/api/addOrUpdate‘ -H 'Cookie: ' -H 'Origin: http://localhost:7001' --data-urlencode [email protected] --data 'id=111'
發送表單: userInfo = {....},id =111