- 论坛徽章:
- 6
|
# [ /home/soio/1bs/awks ] {2018-08-18 14:43:36}
: 1534574616:0;➜ cat sed.N
N:
Add a newline to the pattern space,
then append the next line of input to the pattern space.
If there is no more input then sed exits without processing any more commands.
#--#
# [ /home/soio/1bs/awks ] {2018-08-18 14:43:47}
: 1534574627:0;➜ sed '=' sed.N | sed 'N;s/\n/--/'
1--N:
2--Add a newline to the pattern space,
3-- then append the next line of input to the pattern space.
4--If there is no more input then sed exits without processing any more commands.
# [ /home/soio/1bs/awks ] {2018-08-18 14:48:58}
: 1534574938:0;➜ sed '=;{N;s/\n/ /}' sed.N
1
N: Add a newline to the pattern space,
3
then append the next line of input to the pattern space. If there is no more input then sed exits without processing any more commands.
# [ /home/soio/1bs/awks ] {2018-08-18 14:48:47}
: 1534574927:0;➜ sed '=;/^[0-9][0-9]*/N;s/\n/ /' sed.N
1
N:
2
Add a newline to the pattern space,
3
then append the next line of input to the pattern space.
4
If there is no more input then sed exits without processing any more commands.
想把她 2合1 失败了 |
|