diff --git a/.directory b/.directory new file mode 100644 index 0000000..aa092a8 --- /dev/null +++ b/.directory @@ -0,0 +1,2 @@ +[Desktop Entry] +Icon=folder-script diff --git a/bash/grab4chanthreadimages.sh b/bash/grab4chanthreadimages.sh new file mode 100755 index 0000000..01471ae --- /dev/null +++ b/bash/grab4chanthreadimages.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +mkdir temp && cd "$_" +#wget -r -l 1 -A jpg,jpeg,png,gif,bmp -nd -H + +for f in *.* +do + if [[ "$f" == *s.* ]]; then + rm $f + elif [[ "$f" =~ \.tmp(\.[\d]+)? ]]; then + rm $f + fi +done \ No newline at end of file