avatar
w*c
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
avatar
w*c
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

avatar
h*h
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?
avatar
w*c
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

avatar
t*e
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。