split分割文件方法
https://kb.iu.edu/d/afar
https://unix.stackexchange.com/questions/81904/repeat-each-line-multiple-times
一行变多行
This might work for you (GNU sed):
sed 'h;:a;s/[^\n]\+/&/4;t;G;ba' file
Will repeat each line 4 times.
Or if you prefer:
sed 'h;:a;s/\n/&/3;t;G;ba' file
Where you repeat each line 3 more times.
一个文件拷贝成多个文件
tee <rc-test-.jmx rc-test-{01..40}.jmx >/dev/null
本文介绍如何使用split命令分割大型文件,sed命令将文件中每一行重复多次,以及如何使用tee命令将一个文件拷贝成多个文件。这些技巧对于处理大量数据或进行文件管理非常实用。
866

被折叠的 条评论
为什么被折叠?



