zoukankan      html  css  js  c++  java
  • Makefile文件中的sed介绍

    haoxin$ sed --help
    Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

    -n, --quiet, --silent
    suppress automatic printing of pattern space
    -e script, --expression=script
    add the script to the commands to be executed
    -f script-file, --file=script-file
    add the contents of script-file to the commands to be executed
    --follow-symlinks
    follow symlinks when processing in place
    -i[SUFFIX], --in-place[=SUFFIX]
    edit files in place (makes backup if extension supplied)
    -l N, --line-length=N
    specify the desired line-wrap length for the `l' command
    --posix
    disable all GNU extensions.
    -r, --regexp-extended
    use extended regular expressions in the script.
    -s, --separate
    consider files as separate rather than as a single continuous
    long stream.
    -u, --unbuffered
    load minimal amounts of data from the input files and flush
    the output buffers more often
    --help display this help and exit
    --version output version information and exit

    If no -e, --expression, -f, or --file option is given, then the first
    non-option argument is taken as the sed script to interpret. All
    remaining arguments are names of input files; if no input files are
    specified, then the standard input is read.

    HOSTARCH := $(shell uname -m |         执行shell命令  uname -m 查看主机类型//此处的:=相当于强制执行不管HOSTARCH怎么定义,都在此重新赋值
     
    sed -e s/i.86/i386/
     
        -e s/sun4u/sparc64/
     
        -e s/arm.*/arm/
     
        -e s/sa110/arm/
     
        -e s/ppc64/powerpc/
     
        -e s/ppc/powerpc/
     
        -e s/macppc/powerpc/)

  • 相关阅读:
    团队博客——Sprint计划会议1
    团队博客第一次(团队成员及团队作业说明)
    第一次冲刺-团队开发(第一天)
    cnblog评价以及团队软件的部分改善
    Sprint计划会议1
    团队开发--手机小游戏 需求分析
    团队博客和成员
    第一次冲刺01
    第二次冲刺——第二次总结
    团队开发——Alpha版总结会议
  • 原文地址:https://www.cnblogs.com/haoxing990/p/4629226.html
Copyright © 2011-2022 走看看