Chinaunix

标题: 如何让某行与其他行有较明显的区别 [打印本页]

作者: wenyuw    时间: 2003-03-13 10:30
标题: 如何让某行与其他行有较明显的区别
我想往文件中输入类似如下内容
111
222
333
444

其中某行如333有下划线,类似word中的效果,而且我不想让下划线占据新的一行,所以我不能用echo "--------" >>! filename命令。请教高手,有无办法?或者让333与其他行有较明显的区别。
作者: muzx    时间: 2003-03-13 10:35
标题: 如何让某行与其他行有较明显的区别
好像没戏。
作者: taige    时间: 2003-03-13 10:54
标题: 如何让某行与其他行有较明显的区别
tput init
echo "111" >f
echo "222" >>f
echo "222" >>f
tput smul >>f
echo "333" >>f
tput sgr0 >>f
echo "444" >>f
cat f

只是要用cat看文件,vi看的话只能是乱码




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2