如何-在shell中重复n次?我已阅读并试过这个,但这不起作用-.它抛出错误invalid option.以下是我使用的确切命令:
-
invalid option
printf '-%.0s' {1..100}
原贴线: printf '-%0.s' {1..100}
printf '-%0.s' {1..100}
我也试过逃避-,\但在这种情况下,它重复\-n次.
\
\-
linux bash shell repeat
bash ×1
linux ×1
repeat ×1
shell ×1