Skip to content

Instantly share code, notes, and snippets.

@eduo
eduo / chreckseries.bash
Created October 20, 2013 19:36
Check Serie Folders for Renaming
#!/bin/bash
#
cd /Volumes/TV-MOVIES/TV/
#find . -name ".?*" -print | while read line
#do
#rm "$line"
#echo "${line}"
#done
@eduo
eduo / Youkioske2cbz.bash
Created November 12, 2010 22:40
Obtener todas las imágenes de una revista de youkioske
KIOSKEMAG="http://youkioske.com/revistas-masculinas/gq-magazine-november-2010-3/"
curl -o tempfile -s "${KIOSKEMAG}"
TITLE=$(cat tempfile | grep "href="'"" ' | head -n1 | cut -f2 -d\> | cut -f1 -d\< )
echo "Title is: ${TITLE}"
ISSUUBASE="http://image.issuu.com/"\
$(curl -s \
$(curl -s \
$(cat tempfile |\
grep srcIframe | grep var | sed -e's|^.*\(http.*\)".*|\1|g') |\
grep http | sed -e's|.*\(http:.*\)\?mode=embed.*|\1|g') |\
#!/bin/bash
#
### Get Lists
ls -1 {episodes,movies}.txt | head -n 1 | while read LIST
do
### Go Through Lists
cat "${LIST}" | sort | while read FILE
do
### Get filename
FILENAME=${FILE##*/}