ubuntu:bash:tac
Differences
This shows you the differences between two versions of the page.
ubuntu:bash:tac [2019/11/29 11:52] – created peter | ubuntu:bash:tac [2019/12/07 01:48] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - Bash - tac ====== | ||
- | |||
- | tac - concatenate or print in reverse (last line first) | ||
- | |||
- | <code bash> | ||
- | tac > f1 | ||
- | </ | ||
- | |||
- | 1 | ||
- | 2 | ||
- | Press CTRL+D to stop | ||
- | |||
- | |||
- | <code bash> | ||
- | tac f1 | ||
- | </ | ||
- | |||
- | 1 | ||
- | 2 | ||
- | |||
- | <code bash> | ||
- | tac vid.avi > vid2.avi ; mv vid2.avi vid.avi | ||
- | </ | ||
- | |||
- | It wont play. | ||
- | |||
- | <code bash> | ||
- | tac vid.avi > vid2.avi ; mv vid2.avi vid.avi | ||
- | </ | ||
- | |||
- | Back to playable. | ||
- | |||
- | NOTE: This is like a mini encryption for binary files. | ||
ubuntu/bash/tac.1575028376.txt.gz · Last modified: 2020/07/15 09:30 (external edit)