(Video materials in preparation)
vcat : Concatenates files vertically
Usage : vcat [-<n>] file1 file2 ...
Version : Wed Sep 19 13:56:03 JST 2018
Edition : 2
Vertically concatenates multiple files specified as arguments.
(File 1: file1)
---Test Results---
ID Name Age Gender A B C D E
(File 2: file2)
0000008 Darwin_____ 50 F 52 91 44 9 0
0000009 Curie______ 68 F 60 89 33 18 6
0000010 Tesla______ 50 F 95 60 35 93 76
0000011 Chandra____ 55 F 92 56 83 96 75
$ vcat file1 file2 > file3
(file3)
---Test Results---
ID Name Age Gender A B C D E
0000008 Darwin_____ 50 F 52 91 44 9 0
0000009 Curie______ 68 F 60 89 33 18 6
0000010 Tesla______ 50 F 95 60 35 93 76
0000011 Chandra____ 55 F 92 56 83 96 75
Use the "-<n>" option to open up <n> number of lines in between
the concatenated files.
Leave two blank lines when concatenating
$ vcat -2 file1 file2 > file3
(file3)
---Test Results---
ID Name Age Gender A B C D E
<- 2 blank lines
0000008 Darwin_____ 50 F 52 91 44 9 0
0000009 Curie______ 68 F 60 89 33 18 6
0000010 Tesla______ 50 F 95 60 35 93 76
0000011 Chandra____ 55 F 92 56 83 96 75
To read one file from standard input, speciry that file as "-".
$ cat file1 | vcat - file2 > file3