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
2020-11-02 19:00:02 +08:00

16 lines
410 B
Bash
Executable File

#########################################################################
# File Name: c.sh
# Author: pxz
# Created Time: Tue 13 Oct 2020 06:28:57 PM CST
#########################################################################
#!/bin/bash
size=("1k" "10k" "100k" "1M" "2M" "3M" "4M" "5M" "10M" "20M" "30M")
num=0
while((${num} < 11))
do
truncate -s ${size[$num]} ${size[$num]}.data
let "num++"
done