I have two files with same amount of rows and columns. Delimited with ;
. Example;
file_a:
1;1;1;1;1
2;2;2;2;2
3;3;3;3;3
4;4;4;4;4
file_b:
A;A;A;A;A
B;B;;;B
;;;;
D;D;D;D;D
Ignoring delimiters, line 3 is empty from file_b
. So I want to remove line 3 from file_a
as well, before command;
paste -d ';' file_a file_b
.
in order to have an output like this:
1;1;1;1;1;A;A;A;A;A
2;2;2;2;2;B;B;;;B
4;4;4;4;4;D;D;D;D;D
Edit: Number of columns is 93 and same for each row and for both files, so both files have exactly the same matrix of rows and columns.