Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 3, 2024
1 parent 1998b8a commit 5df701f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions functions/opensquat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,31 @@ opensquat() {
# Filter out previously processed domains and known dead or parked domains
comm -23 "$NRD" <(sort old_nrd.tmp "$DEAD_DOMAINS" "$PARKED_DOMAINS") > new_nrd.tmp

# Split file into 12 equal files
split -d -l $(( $(wc -l < new_nrd.txt) / 12 )) new_nrd.txt
# Split file into 12 equal files
split -d -l $(( $(wc -l < new_nrd.tmp) / 12 )) new_nrd.tmp

# Run checks in parallel
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x00 -o results_x00.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x01 -o results_x01.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x02 -o results_x02.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x03 -o results_x03.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x04 -o results_x04.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x05 -o results_x05.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x06 -o results_x06.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x07 -o results_x07.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x08 -o results_x08.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x09 -o results_x09.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x10 -o results_x10.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x11 -o results_x11.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x12 -o results_x12.txt &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x13 -o results_x13.txt
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x00 -o results_x00.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x01 -o results_x01.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x02 -o results_x02.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x03 -o results_x03.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x04 -o results_x04.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x05 -o results_x05.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x06 -o results_x06.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x07 -o results_x07.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x08 -o results_x08.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x09 -o results_x09.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x10 -o results_x10.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x11 -o results_x11.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x12 -o results_x12.tmp &
python3 opensquat.py -k "$KEYWORDS" -c 0 -d x13 -o results_x13.tmp
wait
rm x??

mkdir -p data/pending

cat results_x??.txt > data/pending/domains_opensquat.tmp 2> /dev/null
rm results_x??.txt 2> /dev/null
cat results_x??.tmp > data/pending/domains_opensquat.tmp 2> /dev/null
rm results_x??.tmp 2> /dev/null

format_file data/pending/domains_opensquat.tmp
}
Expand Down

0 comments on commit 5df701f

Please sign in to comment.