-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiterTx.sh
57 lines (45 loc) · 1.17 KB
/
iterTx.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# Script Name: script_name.sh
# Description: Brief description of what the script does
# Author: Your Name
# Date: YYYY-MM-DD
# Function to display usage information
usage() {
echo "Usage: $0 [options]"
echo "Options:"
echo " -h, --help Display this help message"
# Add more options here
}
# Parse command line arguments
while [[ "$1" != "" ]]; do
case $1 in
-h | --help )
usage
exit 0
;;
# Add more options here
* )
echo "Invalid option: $1"
usage
exit 1
;;
esac
shift
done
# Main script logic
main() {
# for i in $(seq -w 1 100); do
# forge script -f exam2 Rw2 --optimize --optimizer-runs 999 --broadcast
# forge script -f exam2 Withd --optimize --optimizer-runs 999 --broadcast
# done
# 반복할 인덱스 목록
# indexes=(1 2 15 22 4 5 7)
# for i in "${indexes[@]}"; do
# export RW1_ID=0x$(printf "%02x" $i)
# echo "Index : $i"
# echo $RW1_ID
# forge script -f rw1 RW1 --optimize --optimizer-runs 999 --broadcast --slow
# done
}
# Execute main function
main