- 论坛徽章:
- 0
|
test-> cat quote.txt
The honeysuckle band played all night long for only $90.
It was an evening of splendid music and company.
Too bad the disco floor fell through at 23:00.
The local nurse Miss P.Neave was in attendance.
test-> sed -n '/The/,2'p quote.txt
The honeysuckle band played all night long for only $90.
It was an evening of splendid music and company.
The local nurse Miss P.Neave was in attendance.
test-> sed -n '2,/The/'p quote.txt
It was an evening of splendid music and company.
Too bad the disco floor fell through at 23:00.
The local nurse Miss P.Neave was in attendance.
对sed -n '/The/,2'p quote.txt
和sed -n '2,/The/'p quote.txt
的含义不理解,这两种写法分别是什么含义,谢谢 |
|