-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate.sh
executable file
·29 lines (24 loc) · 918 Bytes
/
generate.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
#!/bin/bash
rm -rf ./testing
mkdir testing
cd testing
mkdir src
cd src
mkdir components
mkdir data
mkdir pages
mkdir public
mkdir templates
for i in {1..1000}; do
random_string=$(openssl rand -base64 24 | tr -dc 'A-Z')
# touch "components/Component$random_string.html"
# touch "data/Data$random_string.json"
# touch "pages/page$random_string.html"
# touch "public/public$random_string.txt"
# touch "templates/Template$random_string.html"
echo "<p>Component $random_string</p>" > "components/$random_string.component.html"
echo "[{\"A\": \"$random_string\"}]" > "data/$random_string.data.json"
echo "<p>Template - {A} - $random_string</p>" > "templates/$random_string.template.html"
echo "<p>Page $random_string</p> <br> <$random_string /> <br> <-{$random_string} />" > "pages/$random_string.html"
# echo "Public $random_string" > "public/public$random_string.txt"
done