curl或wget 只抓 N bytes的問題 - Linux

Table of Contents

請問該如何用wget 或curl 將連結抓下我所需要的N Bytes?

例如一個檔案有100MB但我只要抓前面1MB就好

這樣該如何做到

謝謝

--

All Comments

Dora avatarDora2015-02-09
http://goo.gl/1QHli3 這篇參考看看?
Carolina Franco avatarCarolina Franco2015-02-10
搭配head一起用不知道行不行
Todd Johnson avatarTodd Johnson2015-02-12
curl -r <range> -L /path/to/taget