- 论坛徽章:
- 0
|
回复 linux_kejun
如果grep的东西是开头的话,想看接下来的,可以直接grep -N (N表示数字)
xiaopan3322 发表于 2010-12-16 16:24 ![]()
我把 -A num; -B num 和 -num这三种情况的结果列举出来,供没有试的过人参考一下,呵呵。感觉都很实用
grep BUILD_SYSTEM main.mk -A 3
--
include $(BUILD_SYSTEM)/config.mk
# This allows us to force a clean build - included after the config.make
# environment setup is done, but before we generate any dependencies. This
grep BUILD_SYSTEM main.mk -B 3
--
# contains everything that's built during the current make, but it also further
# extends ALL_DEFAULT_INSTALLED_MODULES.
ALL_DEFAULT_INSTALLED_MODULES := $(modules_to_install)
include $(BUILD_SYSTEM)/Makefile
grep BUILD_SYSTEM main.mk -3
--
INTERNAL_MODIFIER_TARGETS := showcommands checkbuild
# Bring in standard build system definitions.
include $(BUILD_SYSTEM)/definitions.mk
ifneq ($(filter eng user userdebug tests,$(MAKECMDGOALS)),)
$(info ***************************************************************) |
|