VirtualBox

source: kBuild/vendor/sed/4.1.5/testsuite/uniq.sed@ 599

Last change on this file since 599 was 599, checked in by bird, 18 years ago

GNU sed 4.1.5.

File size: 309 bytes
Line 
1h
2
3:b
4# On the last line, print and exit
5$b
6N
7/^\(.*\)\n\1$/ {
8 # The two lines are identical. Undo the effect of
9 # the n command.
10 g
11 bb
12}
13
14# If the @code{N} command had added the last line, print and exit
15$b
16
17# The lines are different; print the first and go
18# back working on the second.
19P
20D
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette