Hi All,
How I can paste contain big file1
to end another file2
, e.g.,
$cat file1
aaaaa
bbbbb
ccccc
$cat file2
11111 22222 3333 4444
55555 66666 7777 8888
then want like
paste contain file1
to end file2 > file3
$cat file3
aaaaa
bbbbb
ccccc
11111 22222 3333 4444
55555 66666 7777 8888
Thanks you,
concatenate files:
ty this - you have line from file2 thenlines from file1 in a new file file3
cat file2 file1 > file3
Hello aav1307,
Following may also help you in same.
cat file{1,2} > OUTPUT_file ##In Bash, ksh, zsh
OR
awk '1' file1 file2 > OUTPUT_file
OR
awk '1' file{1,2} > OUTPUT_file ##In Bash, ksh, zsh
Thanks,
R. Singh
1 Like
Or (if your input files really do have the same base name and have literal 1 and 2 at the ends of their names) in any shell that is based on Bourne shell syntax:
cat file[12] > file3