[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Branch on sed
From: |
Norihiro Tanaka |
Subject: |
Branch on sed |
Date: |
Sat, 03 Oct 2009 23:22:51 +0900 |
Hi,
Which is correct result for the following commands, in which branch
command is included, in POSIX ?
seq 1 10 | sed -ne '1,/4$/{p;b
} 1,/[36]$/p;'
- sed 4.1.0 or later
1
2
3
4
5
6
- sed 4.0.9 or former
( and Solaris 10 native, HP-UX 11i native, AIX 5.3 native)
1
2
3
4
Regards,
Norihiro
- Branch on sed,
Norihiro Tanaka <=