wind_mark: hoho, try this way... [阅读: 385] 2006-03-08 09:59:47 get 3 lines since the first line contains the keyword: sed -n '/ktlccond/,$p' yourfile|sed -n '1,3p'