text.txt:
37. Yahoo! Messenger: Chat (12)
This scenario contains user-initiated operations of Yahoo! Messenger on a PC. The user logs into Yahoo! Messenger, selects a friend, and initiates a chat with the friend. The scenario ends after 3 minutes of user interactions.38. Yahoo! Messenger: Chat (11)
This scenario contains user-initiated operations of Yahoo! Messenger on a PC. The user logs into Yahoo! Messenger, selects a friend, and initiates a chat with the friend. The scenario ends after 3 minutes of user interactions.
sed '/This scena/,3d'结果:
37. Yahoo! Messenger: Chat (12)
38. Yahoo! Messenger: Chat (11)
匹配命中关键字的后1行:
grep -A1 'keyword' test.txt
匹配命中关键字的前1行:
grep -B1 'keyword' test.txt
本文详细介绍了两个具体的Yahoo! Messenger聊天场景案例,包括用户登录、选择好友及开始聊天的过程,并记录了每个场景中用户的交互行为,每个场景持续约3分钟。
846

被折叠的 条评论
为什么被折叠?



