-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_errors.sh
More file actions
33 lines (23 loc) · 814 Bytes
/
Copy pathcheck_errors.sh
File metadata and controls
33 lines (23 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/zsh
result_folder=$1
cd cache/$result_folder
# check whether there is any auto-login errors
errors=$(grep -l "Creating an account has many benefits: check out faster" *.html | sort -u | grep -o '[0-9]\+')
c=$(echo $errors | wc -l)
echo "Shopping total errors: $c"
echo $errors | tr '\n' ','
echo '\n\n'
errors=$(grep -l "Welcome, please sign in" *.html | sort -u | grep -o '[0-9]\+')
c=$(echo $errors | wc -l)
echo "Admin total errors: $c"
echo $errors | tr '\n' ','
echo '\n\n'
errors=$(grep -l "Username or email" *.html | sort -u | grep -o '[0-9]\+')
c=$(echo $errors | wc -l)
echo "Gitlab errors: $c"
echo $errors | tr '\n' ','
echo '\n\n'
errors=$(grep -l "Keep me logged in" *.html | sort -u | grep -o '[0-9]\+')
c=$(echo $errors | wc -l)
echo "Reddit errors: $c"
echo $errors | tr '\n' ','