mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
26 lines
659 B
Markdown
26 lines
659 B
Markdown
![]() |
# tac
|
||
|
|
||
|
> 파일을 역순으로 표시하고 연결.
|
||
|
> 같이 보기: `cat`.
|
||
|
> 더 많은 정보: <https://www.gnu.org/software/coreutils/tac>.
|
||
|
|
||
|
- 특정 파일들을 역순으로 연결:
|
||
|
|
||
|
`tac {{경로/대상/파일1 경로/대상/파일2 ...}}`
|
||
|
|
||
|
- `stdin`을 역순으로 표시:
|
||
|
|
||
|
`{{cat 경로/대상/파일}} | tac`
|
||
|
|
||
|
- 특정 [s]eparator 사용:
|
||
|
|
||
|
`tac -s {{구분자}} {{경로/대상/파일1 경로/대상/파일2 ...}}`
|
||
|
|
||
|
- 특정 [r]egex를 [s]eparator로 사용:
|
||
|
|
||
|
`tac -r -s {{구분자}} {{경로/대상/파일1 경로/대상/파일2 ...}}`
|
||
|
|
||
|
- 각 파일 앞에 구분자 [b]efore 사용:
|
||
|
|
||
|
`tac -b {{경로/대상/파일1 경로/대상/파일2 ...}}`
|