由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - sed: how to delete characters between pattern1 and pattern2 ?
相关主题
怎么用sed删除符合两个条件的pattern呢?不打开文档而修改文档
vi tips for paper writersmac + iterm2 + bash; how to display the chinese characters?
改密码的问题用thunar怎么加上delete confirmation?
how to check space character in perl ?How to find and delete all hard links to a file (ZZ)
putty 中文字显示出问题啊ext3 format, how to set folders undeletable, files are writable?
another question如何
如何改变一个文件的UNIT?rsync question
sed简单问题How to set Chinese font under UTF-8 encoding?
相关话题的讨论汇总
话题: sed话题: pattern1话题: pattern2话题: characters话题: delete
进入Linux版参与讨论
1 (共1页)
s*****w
发帖数: 1527
T********r
发帖数: 6210
2
sed 's/<.*>//g'

【在 s*****w 的大作中提到】
: Hi everyone,
: i have this in each line of the file,
: abc
: how to generate lines only have "abc" ?
: tried
: sed -e '///d'
: but no work.
: many thanks !

s*****w
发帖数: 1527
3
C:\signal\Stock\config>sed 's/<.*>//g' spy5.txt > spy6.txt
The filename, directory name, or volume label syntax is incorrect.
what did i miss ?
i'm using cygwin

【在 T********r 的大作中提到】
: sed 's/<.*>//g'
s*****w
发帖数: 1527
4
same command in vi worked, :(

【在 s*****w 的大作中提到】
: C:\signal\Stock\config>sed 's/<.*>//g' spy5.txt > spy6.txt
: The filename, directory name, or volume label syntax is incorrect.
: what did i miss ?
: i'm using cygwin

T********r
发帖数: 6210
5
run bash first, then run the command in bash shell

【在 s*****w 的大作中提到】
: C:\signal\Stock\config>sed 's/<.*>//g' spy5.txt > spy6.txt
: The filename, directory name, or volume label syntax is incorrect.
: what did i miss ?
: i'm using cygwin

1 (共1页)
进入Linux版参与讨论
相关主题
How to set Chinese font under UTF-8 encoding?putty 中文字显示出问题啊
请问在ubuntu 10.04下可以看ppstream 吗?another question
rsync error如何改变一个文件的UNIT?
Can we undo operations done in a terminal, for example, file deletion through rm?sed简单问题
怎么用sed删除符合两个条件的pattern呢?不打开文档而修改文档
vi tips for paper writersmac + iterm2 + bash; how to display the chinese characters?
改密码的问题用thunar怎么加上delete confirmation?
how to check space character in perl ?How to find and delete all hard links to a file (ZZ)
相关话题的讨论汇总
话题: sed话题: pattern1话题: pattern2话题: characters话题: delete