Board logo

标题: [文本处理] GNU sed v4.0.7 单文件版(使用 -i 参数不生成备份文件) [打印本页]

作者: tmplinshi    时间: 2011-7-20 15:01     标题: GNU sed v4.0.7 单文件版(使用 -i 参数不生成备份文件)

论坛里有一个 sed.exe 4.1.4 单文件版,但是执行时会转到 437 代码页下,影响执行速度。

-------------------------------------------------
下载地址 1: http://pan.baidu.com/share/link?shareid=279892910&uk=1124163200
下载地址 2: http://www.pement.org/sed/gsed407x.zip
官网下载: http://unxutils.sourceforge.net/UnxUpdates.zip
-------------------------------------------------

GNU sed version 4.0.7
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.

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
  -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
  -r, --regexp-extended
                 use extended regular expressions in the script.
  -s, --separate
                 consider files as separate rather than as a single continuous
                 long stream.
  --text     switch to text mode
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
      --help     display this help and exit
  -V, --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.

E-mail bug reports to: bonzini@gnu.org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.

作者: shh200438    时间: 2011-11-14 10:23

好东西, 谢了. 不过这个生成的换行是unix的, 4.1.4的那个版本是dos的.




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2