公告
财富商城
积分规则
提问
发文
2019-01-02 14:25发布
梦醉为红颜
How could I do this with echo?
echo
perl -E 'say "=" x 100'
for i in {1..100} do echo -n '=' done echo
Here's two interesting ways:
ubuntu@ubuntu:~$ yes = | head -10 | paste -s -d '' - ========== ubuntu@ubuntu:~$ yes = | head -10 | tr -d "\n" ==========ubuntu@ubuntu:~$
Note these two are subtly different - The paste method ends in a new line. The tr method does not.
paste
tr
最多设置5个标签!
Here's two interesting ways:
Note these two are subtly different - The
paste
method ends in a new line. Thetr
method does not.