【发布时间】:2011-05-13 10:42:39
【问题描述】:
我有一个问题。 我的文本应该以指定的宽度右对齐。我已经设法将输出削减到所需的大小,但我无法将所有东西都放在右侧
这是我得到的:
#!/usr/local/bin/bash
length=$1
file=$2
echo $1
echo -e "length = $length \t file = $file "
f=`fold -w$length $file > output`
while read line
do
echo "line is $line"
done < "output"
谢谢
【问题讨论】:
标签: bash shell alignment text-alignment fold