blob: 4b9e99360c7b74ed75a68cc9ead06168c11bf86c (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# Opening, truncating and appending a file 2000 times each.
i=0
: >out
while [ $i -lt 6000 ]; do
printf '%s\n' "$i" >out
printf '%s\n' x >>out
i=$((i + 1))
done
wc -l <out
|