首页  编辑  

获取远程文件的文件大小

Tags: /计算机文档/Linux & Unix/   Date Created:
获取远程文件的文件大小
How to get remote file size from a shell script?
http://stackoverflow.com/questions/4497759/how-to-get-remote-file-size-from-a-shell-script

curl -sI $URL | grep Content-Length | awk '{print $2}'