Skip to content

Instantly share code, notes, and snippets.

@xeBuz
Created October 18, 2012 01:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeBuz/3909422 to your computer and use it in GitHub Desktop.
Save xeBuz/3909422 to your computer and use it in GitHub Desktop.
Convert the console to a gif for n seconds
#!/bin/bash
clear
mkdir temp_gif
segs=`expr $1 \* 5`
for (( i = 1; i <= $segs ; i++ ));
do
printf -v number "%06d" $i
import -window $WINDOWID temp_gif/$number.gif
sleep 0.2
done
convert -delay 20 -loop 0 temp_gif/*.gif animacion.gif
rm -R temp_gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment