• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 對付^M

    發表于:2007-07-04來源:作者:點擊數: 標簽:
    http://www.vim.org/tips/tip.php?tip_id=145 We can easily correct the dreaded '^M' at the end of our Unix lines, or make files have more than one line in DOS by: To change from CRLF (DOS) to just LF (Unix): :set fileformat= unix :w Or to ch
    http://www.vim.org/tips/tip.php?tip_id=145
    We
    can easily correct the dreaded '^M' at the end of our Unix lines, or make files have more than one
    line in DOS by:

    To change from <CR><LF> (DOS) to just <LF> (Unix):
    :set fileformat=unix
    :w

    Or to change back the other way:
    :set fileformat=dos
    :w

    It also works for Apple land:
    :set fileformat=mac
    :w


    另一種方法
    remove CTRL-M characters from a file in UNIX

    Something useful yet many don't know about it:

    Using sed (the stream editor)- try this:
    sed -e "s/^M//" FileName > NewFileName

    To get ^M you hold down the CTRL key, press V then while still holding CTRL, press M.

    While using vi:
    % vi filename

    While in vi and vim, hit : to get into command mode, then type:
    :%s/^M//g

    While in Emacs, go to the beginning of the document and
    Type:
    M-x replace-string RET C-q C-m RET RET

    where "RET" means press-the-return-key and C-q and C-m mean hold-the-CTRL-key-and press-the-m-(or q)-key.


    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>