Skip to content

Instantly share code, notes, and snippets.

View caiwilliamson's full-sized avatar

Cai Williamson caiwilliamson

View GitHub Profile
@caiwilliamson
caiwilliamson / clip.sh
Last active May 23, 2020 14:54
Script to extract clips from YouTube videos
#!/bin/bash
while IFS=, read -ra line || [ -n "$line" ]
do
if [ $line ]; then
url="${line[0]}"
start="${line[1]}"
end="${line[2]}"
title=$(youtube-dl --get-id "$url")