shell 必殺技

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章