All Questions
6 questions
0
votes
2
answers
2k
views
How to merge two /etc/group files
I have two files in style of /etc/group :
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:username
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
ubuntu:x:999:
And I want to merge them into a third ...
1
vote
1
answer
246
views
Compare 2 Columns in 2 different files
I need to subtract second and third columns between 2 files based on the first column and do not show rows with diff_column_2(DIFF-IO)=diff_column_3(DIFF-SELECT)=0. Noting that the order can be random ...
4
votes
4
answers
262
views
Stack data from multiple delimited files into one, with variable columns
I'm new to scripting. Got struck with a file merge issue in Unix. Was looking for some direction and stumbled upon this site. I saw many great posts and replies but couldn't find a solution to my ...
0
votes
2
answers
147
views
Merge Two files depending on a Column, nth occurrence of a string in the column of file 1 to be merged with nth occurrence
Merge Two files depending on a column, nth occurrence of a string in column1 of file1 should be merged with nth occurrence of the same string in column1 of file2. I tried join but the results are not ...
0
votes
1
answer
120
views
Compare first column of 2 files based on the second column using the delimiter ;
I need to compare below 2 files.
The head_file:
2345;int builder(
1000;char type::edit::display <test>(
250;void unamed_string_tree*
The ref_file:
2000;int builder(
500;...
4
votes
2
answers
3k
views
Adding column based on matching of second column
I have two files. The first file has the following format:
10D0325 2465 0 0 -9 -9
10D0598 2567 0 0 -9 -9
10D0562 2673 0 0 -9 -9
10D0175 2457 0 0 -9 -9
10D0241 2209 0 0 -9 -9
10D0954 2312 0 0 -9 -9
...