由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - question about vi
相关主题
[转载] HELP!!! Questions on subnet IP configA question about awk
请教How to get rid of the bg job id redirection?a question about "nohup"
awk questionhow to see the output to stderr?
unix shell help?what's wrong with this ftp batch file?
unix下编译fortran 的错误太多,看不到怎么办?ps怎么在windows下一张纸打印多页?
where is gcc?有人知道吗?Re: 怎样知道程序运行时间?time 什么来着?
Re: redirect in fork() then exec()Help, What happen to Audio output when using Exceed
how to redirect error output under unixQuestion about I/O redirection.
相关话题的讨论汇总
话题: vi话题: question话题: match话题: could话题: try
进入Unix版参与讨论
1 (共1页)
w****c
发帖数: 10
1
a question about vi:
"man ls > ls.out" which redirects output to ls.out.
then i try to look at it in vi by "vi ls.out". I see that
a lot of "^H" in the content which distracts my view.
question as is:
1.I try to delete them using s/\^H/\ /g. but doesn't
match the pattern given.I could not match against "^H" using
\^H in the regular expression. What is "^H" from ? and how
could I match against it?
2. in vi line comannd ":", how can I represent the
Ctrl key "^"?It is the small quest
w****c
发帖数: 10
2
nobody could answer this question?

【在 w****c 的大作中提到】
: a question about vi:
: "man ls > ls.out" which redirects output to ls.out.
: then i try to look at it in vi by "vi ls.out". I see that
: a lot of "^H" in the content which distracts my view.
: question as is:
: 1.I try to delete them using s/\^H/\ /g. but doesn't
: match the pattern given.I could not match against "^H" using
: \^H in the regular expression. What is "^H" from ? and how
: could I match against it?
: 2. in vi line comannd ":", how can I represent the

h**h
发帖数: 132
3
1> man ls | col -b > ls.out
that should solve your problem
2> if you really want to use man ls > ls.out
and vi it, try :%s/^v^H//g

【在 w****c 的大作中提到】
: nobody could answer this question?
w****c
发帖数: 10
4
thanks.
1) it works well.
2) I tried this out. and failed to match it.
I don't understand the meaning of ^v^H ?
anyway.thanks

【在 h**h 的大作中提到】
: 1> man ls | col -b > ls.out
: that should solve your problem
: 2> if you really want to use man ls > ls.out
: and vi it, try :%s/^v^H//g

t********e
发帖数: 880
5

ctrl-V crtl-H

【在 w****c 的大作中提到】
: thanks.
: 1) it works well.
: 2) I tried this out. and failed to match it.
: I don't understand the meaning of ^v^H ?
: anyway.thanks

1 (共1页)
进入Unix版参与讨论
相关主题
Question about I/O redirection.unix下编译fortran 的错误太多,看不到怎么办?
[转载] LAN 问题请教where is gcc?
How to redirect error messages to a file?Re: redirect in fork() then exec()
How to monitor peak memory usage?how to redirect error output under unix
[转载] HELP!!! Questions on subnet IP configA question about awk
请教How to get rid of the bg job id redirection?a question about "nohup"
awk questionhow to see the output to stderr?
unix shell help?what's wrong with this ftp batch file?
相关话题的讨论汇总
话题: vi话题: question话题: match话题: could话题: try