批处理之家's Archiver

netdzb 发表于 2019-7-24 08:14

这段sed在干什么

am_cv_CC_dependencies_compiler_type=none
if test "$am_compiler_list" = ""; then
   am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     这段sed在干什么        
fi

Batcher 发表于 2019-7-24 23:51

删除depcomp文件中的注释字符,例如:
#hello
##world
###bathome

处理之后变成:
hello
world
bathome

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.