We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Upload $video_id.xml.gzip files
gsutil -h "Content-Type:application/xml" -h "Content-Encoding:gzip" -h "Cache-Control: public, max-age=3600" -m cp -r
Rename .xml files to only their YouTube ids
rename -d 's/.+\-(.{15})/$1/' **/*.xml
Create the directory structure /a/aaa/aaaaaaaaaaa.xml
#!/bin/sh dir="" for file in *.xml.gz do sd="$dir"/`echo "$file" | cut -c 1` sd2="$sd/"`echo "$file" | cut -c -3` echo "$sd2" mkdir -p "$sd2" mv -- "$file" "$sd2" done
There was an error while loading. Please reload this page.