bash:cat
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bash:cat [2019/12/07 01:35] – created peter | bash:cat [2021/01/26 15:55] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== BASH - cat ====== | ||
- | |||
- | cat - concatenate or write files, text or binary | ||
- | |||
- | <code bash> | ||
- | cat > list.txt | ||
- | </ | ||
- | |||
- | aaa | ||
- | |||
- | bbb | ||
- | ccc | ||
- | Press CTRL+D to stop inputting and save file. | ||
- | |||
- | |||
- | <code bash> | ||
- | cat list.txt | ||
- | </ | ||
- | |||
- | aaa | ||
- | |||
- | bbb | ||
- | ccc | ||
- | |||
- | |||
- | <code bash> | ||
- | cat f1 f2 | ||
- | </ | ||
- | |||
- | aaa | ||
- | bbb | ||
- | |||
- | |||
- | <code bash> | ||
- | cat f1 f2 > f3 | ||
- | </ | ||
- | |||
- | |||
- | <code bash> | ||
- | cat f3 | ||
- | </ | ||
- | |||
- | aaa | ||
- | bbb | ||
- | |||
- | |||
- | <code bash> | ||
- | cat >> f3 | ||
- | </ | ||
- | |||
- | ddd | ||
- | |||
- | Append input to file. | ||
- | |||
- | |||
- | <code bash> | ||
- | cat f1 - f2 > f3 | ||
- | </ | ||
- | |||
- | This is what I entered in the middle. | ||
- | |||
- | <code bash> | ||
- | cat f3 | ||
- | </ | ||
- | |||
- | aaa | ||
- | |||
- | |||
- | This is what I entered in the middle. | ||
- | bbb | ||
- | |||
- | |||
- | <code bash> | ||
- | cat video.001 video.002 video.003 > vid.avi | ||
- | </ | ||
- | |||
- | Joining split binary file. | ||
bash/cat.1575682511.txt.gz · Last modified: 2020/07/15 09:30 (external edit)