#例5
[root@localhost ~]# sed 'p' poetry
1)Never give up,
1)Never give up,
2)Never lose hope.
2)Never lose hope.
3)Always have faith,
3)Always have faith,
4)It allows you to cope.
4)It allows you to cope.
5)Trying times will pass,
5)Trying times will pass,
6)As they always do.
6)As they always do.
7)Just have patience,
7)Just have patience,
8)Your dreams will come true.
8)Your dreams will come true.
9)So put on a smile,
9)So put on a smile,
10)You'll live through your pain.
10)You'll live through your pain.
11)Know it will pass,
11)Know it will pass,
12)And strength you will gain
12)And strength you will gain
#例6
[root@localhost ~]# sed -n 'p' poetry
1)Never give up,
2)Never lose hope.
3)Always have faith,
4)It allows you to cope.
5)Trying times will pass,
6)As they always do.
7)Just have patience,
8)Your dreams will come true.
9)So put on a smile,
10)You'll live through your pain.
11)Know it will pass,
12)And stre