Shell 我怎么回显同一个字符直到行尾
我想回显字符“=”直到行尾,与shell脚本的终端窗口大小无关 我可以这样做:Shell 我怎么回显同一个字符直到行尾,shell,echo,Shell,Echo,我想回显字符“=”直到行尾,与shell脚本的终端窗口大小无关 我可以这样做: echo -e "\e[1;35;40m =======================================================================================\e[0m" 但这只是一条随机线。我想让这个角色重复到行尾。我该怎么做 for i in $(seq 1 $(stty size | cut -d' ' -f2)); do echo -n "="
echo -e "\e[1;35;40m =======================================================================================\e[0m"
但这只是一条随机线。我想让这个角色重复到行尾。我该怎么做
for i in $(seq 1 $(stty size | cut -d' ' -f2)); do
echo -n "="
done