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)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值