본문 바로가기

IT/끄적끄적

curl 파일 사이즈 확인

반응형
curl -sI $url | grep -i Content-Length | awk '{print $2}'

source : https://stackoverflow.com/questions/4497759/how-to-get-remote-file-size-from-a-shell-script

반응형