Hi all, Sorry for interrupting you! My OS is OmniOS:
# uname -a SunOS omniosce 5.11 omnios-r151034-0d278a0cc5 i86pc i386 i86pc Check following employee.txt file and sed command: # cat employee.txt 101,John Doe,CEO 102,Jason Smith,IT Manager 103,Raj Reddy,Sysadmin 104,Anand Ram,Developer 105,Jane Miller,Sales Manager # sed -n '/Jason/,+2 p' employee.txt 102,Jason Smith,IT Manager 103,Raj Reddy,Sysadmin 104,Anand Ram,Developer 105,Jane Miller,Sales Manager I think the correct output should be: # sed -n '/Jason/,+2 p' employee.txt 102,Jason Smith,IT Manager 103,Raj Reddy,Sysadmin 104,Anand Ram,Developer Is it a sed bug or I missed something? Thanks very much! -- Best Regards Nan Xiao(肖楠) ------------------------------------------ illumos: illumos-discuss Permalink: https://illumos.topicbox.com/groups/discuss/T5a5499ff3291b3b2-Mcba7401e39f8b8a0dcb4b52e Delivery options: https://illumos.topicbox.com/groups/discuss/subscription
