6
用另一个字符填充字符串中的尾随空格
我想输出hello world20个以上的字符。 printf "%-20s :\n\n" 'hello world!!' # Actual output hello world!! : # Wanted output hello world!!========: 但是,我不想用空格来代替,而是用“ = ”来完成。我怎么做?
Linux,FreeBSD和其他类似Un * x的操作系统用户的问答