tac 命令详解

Linux -- tac 查看文件内容

TAC(1)                  User Commands                 TAC(1)

NAME 名称

    tac - concatenate and print files in reverse

                       连接文件,以相反的顺序打印文件内容

SYNOPSIS 大纲

    tac [OPTION]... [FILE]...

DESCRIPTION 说明

    Write each FILE to standard output, last line first.  With no FILE, or when FILE is -, read standard input.

    将每个文件以倒序的方式依次打印到标准输出设备上。如果没有指定文件,或文件占位符以'-'代替,则从标准输入设备读取。

    Mandatory arguments to long options are mandatory for short options too.

    对于长选项必须的参数,对于短选项也是必须的。

    -b, --before

        attach the separator before instead of after

        在行前附加分隔符代替在行尾附加分隔符。

    -r, --regex

        interpret the separator as a regular expression

        将分隔符作为正则表达式来解析。

    -s, --separator=STRING

        use STRING as the separator instead of newline

        使用指定字符串代替换行作为分隔标志。

    --help display this help and exit

        显示帮助信息并退出。

    --version

        output version information and exit

        显示版本信息并退出。

    GNU coreutils  online  help:  <http://www.gnu.org/software/coreutils/>

    Report tac translation bugs to <http://translationproject.org/team/>

AUTHOR

    Written by Jay Lepreau and David MacKenzie.

COPYRIGHT

    Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.

    This is free software: you are free to change and redistribute  it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

    rev(1)

    The full documentation for tac is maintained as a Texinfo manual. If the info and tac programs are properly installed at your site, the command

        info coreutils 'tac invocation'

    should give you access to the complete manual.

    tac的完整文档是以Texinfo手册形式维护的。如果info和tac程序都已经安装,那么执行命令:

        info coreutils 'tac invocation'

    应该会让你访问到整篇手册。

GNU coreutils 8.22              June 2014                   TAC(1)

猜你喜欢

转载自lshj.iteye.com/blog/2360251