github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/ais/test/s3/get_range.in (about)

     1  // SKIP "aws command does not handle redirects correctly"
     2  
     3  printf "0123456789" > $OBJECT.txt
     4  aws --endpoint-url $HOST s3 mb s3://$BUCKET // IGNORE
     5  aws --endpoint-url $HOST s3 cp $OBJECT.txt s3://$BUCKET$OBJECT // IGNORE
     6  aws --endpoint-url $HOST s3api get-object --bucket $BUCKET --key $OBJECT --range bytes=1-5 /tmp/objpart // IGNORE
     7  cat /tmp/objpart
     8  aws --endpoint-url $HOST s3api get-object --bucket $BUCKET --key $OBJECT --range bytes=4- /tmp/objpart // IGNORE
     9  cat /tmp/objpart
    10  aws --endpoint-url $HOST s3api get-object --bucket $BUCKET --key $OBJECT --range bytes=6-15 /tmp/objpart // IGNORE
    11  cat /tmp/objpart
    12  aws --endpoint-url $HOST s3api get-object --bucket $BUCKET --key $OBJECT --range bytes=-7 /tmp/objpart // IGNORE
    13  cat /tmp/objpart
    14  aws --endpoint-url $HOST s3 rb s3://$BUCKET // IGNORE
    15  rm $OBJECT.txt // IGNORE
    16  rm /tmp/objpart // IGNORE