Skip to content

Instantly share code, notes, and snippets.

@xiaogh98
xiaogh98 / download-vimcast-files.sh
Created June 22, 2017 07:49 — forked from floscr/download-vimcast-files.sh
Download Vimcast Video Files
#!/bin/sh
# Downloads all vimcast videos & save a bookmark file in the same name
# Edit the number manually, have not found a way to get this automatically
for (( i = 1; i < 68; i++ )); do
FILE=$(curl -s http://media.vimcasts.org/videos/$i/ | grep m4v | sed 's/.*m4v\">\(.*m4v\)<\/a>.*/\1/g')
URL=http://media.vimcasts.org/videos/$i/$FILE
OUTPUT_VIDEO_FILE="0$i-$FILE"
OUTPUT_BOOKMARK_FILE="$OUTPUT_VIDEO_FILE.webloc"
echo "$URL"
@xiaogh98
xiaogh98 / download-vimcast-files.sh
Created June 22, 2017 07:49 — forked from floscr/download-vimcast-files.sh
Download Vimcast Video Files
#!/bin/sh
# Downloads all vimcast videos & save a bookmark file in the same name
# Edit the number manually, have not found a way to get this automatically
for (( i = 1; i < 68; i++ )); do
FILE=$(curl -s http://media.vimcasts.org/videos/$i/ | grep m4v | sed 's/.*m4v\">\(.*m4v\)<\/a>.*/\1/g')
URL=http://media.vimcasts.org/videos/$i/$FILE
OUTPUT_VIDEO_FILE="0$i-$FILE"
OUTPUT_BOOKMARK_FILE="$OUTPUT_VIDEO_FILE.webloc"
echo "$URL"