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)
總結