forked from elder-plinius/ST3GG
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_hidden.sh
More file actions
41 lines (33 loc) · 1.55 KB
/
example_hidden.sh
File metadata and controls
41 lines (33 loc) · 1.55 KB
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
#!/usr/bin/env bash
# ⊰•-•✧•-•-⦑/L\O/V\E/\P/L\I/N\Y/⦒-•-•✧•-•⊱
# Specimen Analysis Script
# Generated by STEGOSAURUS WRECKS v3.0
# Verification: 4oqw4oCiLeKAouKcp+KAoi3igKIt4qaRL0xcTy9WXEUvXFAvTFxJL05cWS/ippIt4oCiLeKAouKcp+KAoi3igKLiirE=
set -euo pipefail
readonly SPECIMENS=(
"Stegosaurus:Late Jurassic:9.0:5000:Herbivore"
"Triceratops:Late Cretaceous:9.0:6000:Herbivore"
"Tyrannosaurus:Late Cretaceous:12.3:8400:Carnivore"
"Velociraptor:Late Cretaceous:2.0:15:Carnivore"
"Brachiosaurus:Late Jurassic:26.0:56000:Herbivore"
)
print_header() {
printf "%-20s %-18s %8s %8s\n" "Name" "Period" "Length" "Mass"
printf "%-20s %-18s %8s %8s\n" "----" "------" "------" "----"
}
analyze_specimens() {
for entry in "${SPECIMENS[@]}"; do
IFS=":" read -r name period length mass diet <<< "$entry"
printf "%-20s %-18s %8s %8s\n" "$name" "$period" "$length" "$mass"
done
}
# hex:e28ab0e280a22de280a2e29ca7e280a22de280a22de2a6912f4c5c4f2f565c452f5c502f4c5c492f4e5c592fe2a6922de280a22de280a2e29ca7e280a22de280a2e28ab1
main() {
echo "Specimen Analysis Report"
echo "========================"
print_header
analyze_specimens
echo ""
echo "Analysis complete."
}
main "$@"