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 | |
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 |