相关疑难解决方法(0)

如何在bash中复制字符串?

我在 bash 中有以下字符串

str="kallel"
Run Code Online (Sandbox Code Playgroud)

我想strstr2. 包含str2重复str直到长度 = 20。所以结果应该是这样的:

str2="kallelkallelkallelka"
Run Code Online (Sandbox Code Playgroud)

在 bash 中怎么做?

linux string bash shell

1
推荐指数
1
解决办法
8919
查看次数

标签 统计

bash ×1

linux ×1

shell ×1

string ×1