misc/bash/grab4chanthreadimages.sh

13 lines
210 B
Bash
Raw Normal View History

2023-04-19 18:54:36 -04:00
#!/bin/bash
mkdir temp && cd "$_"
#wget -r -l 1 -A jpg,jpeg,png,gif,bmp -nd -H <your link here>
for f in *.*
do
if [[ "$f" == *s.* ]]; then
rm $f
elif [[ "$f" =~ \.tmp(\.[\d]+)? ]]; then
rm $f
fi
done