This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/example/performance/file/c.sh

16 lines
471 B
Bash
Raw Normal View History

2020-09-21 19:19:18 +08:00
#########################################################################
2020-10-14 15:23:01 +08:00
# File Name: c.sh
2020-09-21 19:19:18 +08:00
# Author: pxz
2020-10-14 15:23:01 +08:00
# Created Time: Tue 13 Oct 2020 06:28:57 PM CST
2020-09-21 19:19:18 +08:00
#########################################################################
#!/bin/bash
2020-11-02 17:55:02 +08:00
size=("100" "200" "300" "400" "500" "600" "700" "800" "900" "1k" "1500" "10k" "100k" "1M" "2M" "3M" "4M" "5M" "10M" "20M" "30M")
2020-10-14 15:23:01 +08:00
2020-09-21 19:19:18 +08:00
num=0
2020-10-14 15:23:01 +08:00
while((${num} < 11))
2020-09-21 19:19:18 +08:00
do
2020-10-14 15:23:01 +08:00
truncate -s ${size[$num]} ${size[$num]}.data
2020-09-21 19:19:18 +08:00
let "num++"
done