Skip to content

Commit 27c70e0

Browse files
Create allocate2.sh
1 parent 754e2a4 commit 27c70e0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

allocate2.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
echo “begin allocating memory...”
4+
for index in $(seq 1000); do
5+
value=$(seq -w -s ‘’ $index $(($index + 1024000000)))
6+
eval array$index=$value
7+
free -m
8+
done
9+
echo “...end allocating memory”

0 commit comments

Comments
 (0)