打印匹配行的前后5行grep -5 ‘something’ file打印匹配行的前后5行grep -C 5 ‘something’ file打印匹配行的后5行grep -A 5 ‘something’ file打印匹配行的前5行grep -B 5 ‘something’ file