Created
          October 18, 2012 01:48 
        
      - 
      
 - 
        
Save xeBuz/3909422 to your computer and use it in GitHub Desktop.  
    Convert the console to a gif for n seconds
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/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