Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 16 lines (13 sloc) 0.33 kB
b73fa63 @substack slides script
authored
1 #!/bin/bash
2 id=$(node -e 'console.log(Math.random().toString(16).slice(2))')
3 dir="/tmp/slides/$id"
4 mkdir -p $dir
5
6 slides=$(grep '^!' slides.markdown | sed 's/.*(//; s/)$//')
7 i=0
8 echo $dir
9 for slide in $slides; do
10 echo $slide
11 ln -s $PWD/$slide $dir/$(printf "%04d" $i)_$(basename "$slide")
12 i=$((i+1))
13 done
14
15 eog $dir/*
Something went wrong with that request. Please try again.