bash:tac
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bash:tac [2019/12/07 01:48] – created peter | bash:tac [2021/01/26 16:09] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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. | ||
bash/tac.1575683315.txt.gz · Last modified: 2020/07/15 09:30 (external edit)