boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - sed: how to delete characters between pattern1 and pattern2 ?
相关主题
怎么用sed删除符合两个条件的pattern呢?
vi tips for paper writers
改密码的问题
how to check space character in perl ?
putty 中文字显示出问题啊
another question
如何改变一个文件的UNIT?
sed简单问题
不打开文档而修改文档
mac + iterm2 + bash; how to display the chinese characters?
相关话题的讨论汇总
话题: 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版参与讨论
相关主题
mac + iterm2 + bash; how to display the chinese characters?
用thunar怎么加上delete confirmation?
How to find and delete all hard links to a file (ZZ)
ext3 format, how to set folders undeletable, files are writable?
如何
rsync question
How to set Chinese font under UTF-8 encoding?
请问在ubuntu 10.04下可以看ppstream 吗?
rsync error
Can we undo operations done in a terminal, for example, file deletion through rm?
相关话题的讨论汇总
话题: sed话题: pattern1话题: pattern2话题: characters话题: delete