- mapfile -t images < <(cat index.html | grep -E "(.jpg|.jpeg)" | sed -E -e 's#.+(images/[0-9]+.(jpeg|jpg)).+#\1#' | uniq; );
- dout="./output";
- if [[ -d "$dout" ]]; then
- rm -r "$dout";
+ mapfile -t images < <(cat index.html | grep -E "(.jpg|.jpeg|.png)" | sed -E -e 's#.+(images/[0-9]+.(jpeg|jpg|png)).+#\1#' | uniq; );
+ dout2="./output";
+ if [[ -d "$dout2" ]]; then
+ rm -r "$dout2";