由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - problem with "\"
相关主题
ask a quention耗时很长的一个command
A question about two linux commands求助, 为什么用find -exec 就没权限cp文件
怎么看网络电视啊?job scheduling question
Grep 能作这个吗?vim 里面进入visual模式后选择然后进入command line后的那个 '<,'> 是什么意思?
求教 shell scripthow to change to number in multiple strings of a file?
问一个 Shell 的问题command line into tex file
好冷清啊,大家讨论linux都去哪儿啊?The command line is powerful, but the UI can be more efficient!
教如何提取运行结果,用grep,awk等shell command命令行迟迟不出来,请问高手是何原因?
相关话题的讨论汇总
话题: grep话题: line话题: problem话题: filename话题: delete
进入Linux版参与讨论
1 (共1页)
c***y
发帖数: 615
1
Is there any simple command line that can be used to delete a line
containing "\"
I have tried
grep "\\", but didn't work it out...
Thanks a lot:)
s*******e
发帖数: 326
2
try
grep '\\'
or
sed -e '/\\/d' filename

【在 c***y 的大作中提到】
: Is there any simple command line that can be used to delete a line
: containing "\"
: I have tried
: grep "\\", but didn't work it out...
: Thanks a lot:)

c***y
发帖数: 615
3

grep every line since my all other line has "\some text"
This one delete everthing:(

【在 s*******e 的大作中提到】
: try
: grep '\\'
: or
: sed -e '/\\/d' filename

u*********r
发帖数: 2735
4
grep -v "\\\\" filename

【在 c***y 的大作中提到】
: Is there any simple command line that can be used to delete a line
: containing "\"
: I have tried
: grep "\\", but didn't work it out...
: Thanks a lot:)

c***y
发帖数: 615
5
tried, not working...

【在 u*********r 的大作中提到】
: grep -v "\\\\" filename
D***h
发帖数: 78
6
sed -e '/\/d'
should work

【在 c***y 的大作中提到】
: tried, not working...
c***y
发帖数: 615
7
Is there any simple command line that can be used to delete a line
containing "\"
I have tried
grep "\\", but didn't work it out...
Thanks a lot:)
s*******e
发帖数: 326
8
try
grep '\\'
or
sed -e '/\\/d' filename

【在 c***y 的大作中提到】
: Is there any simple command line that can be used to delete a line
: containing "\"
: I have tried
: grep "\\", but didn't work it out...
: Thanks a lot:)

c***y
发帖数: 615
9

grep every line since my all other line has "\some text"
This one delete everthing:(

【在 s*******e 的大作中提到】
: try
: grep '\\'
: or
: sed -e '/\\/d' filename

u*********r
发帖数: 2735
10
grep -v "\\\\" filename

【在 c***y 的大作中提到】
: Is there any simple command line that can be used to delete a line
: containing "\"
: I have tried
: grep "\\", but didn't work it out...
: Thanks a lot:)

c***y
发帖数: 615
11
tried, not working...

【在 u*********r 的大作中提到】
: grep -v "\\\\" filename
D***h
发帖数: 78
12
sed -e '/\/d'
should work

【在 c***y 的大作中提到】
: tried, not working...
l***l
发帖数: 22
13
grep -v \\\\ filename
x****o
发帖数: 21566
14
lz:
you really should learn how to ask a question in a better way.
1) state your requirement clearly
2) tell us if it is solved to help other people
1 (共1页)
进入Linux版参与讨论
相关主题
命令行迟迟不出来,请问高手是何原因?求教 shell script
perl 6 有点意思问一个 Shell 的问题
C++ 诡异的编译问题。请教。好冷清啊,大家讨论linux都去哪儿啊?
请高手解答grep和ls的两个问题教如何提取运行结果,用grep,awk等shell command
ask a quention耗时很长的一个command
A question about two linux commands求助, 为什么用find -exec 就没权限cp文件
怎么看网络电视啊?job scheduling question
Grep 能作这个吗?vim 里面进入visual模式后选择然后进入command line后的那个 '<,'> 是什么意思?
相关话题的讨论汇总
话题: grep话题: line话题: problem话题: filename话题: delete