Merging is the operation of taking two or more source contents to produce a single one.
Things that are commonly merged are files (source code, configuration, etc.), branches in a version control system, redundant entries in databases, etc.
I have 2 JSON files with arrays (extracted from restAPI using curl in bash). Both files are arrays with a .result object at the top which needs to remain. The first has a .name field and many (over ...
I need to diff (and merge) two directories (practically same content, with a few extra inserted lines in one set of files). Alas, all diff programs I tried (kompare, diffmerge, kdiff3, diffuse, xxdiff,...
I have 100 of folder where in each folder I have another folder with same name and inside that folder there is a .txt file which I want to extract and merge all the txt files into a new folder.
Ok so the situation is that I have an unknown number of sub-directories that all follow the same naming profile
folder0, folder1, folder2, folder3 etc
Now each folder will have 3 text files and these ...
I have many backups of a same file. Is there a way to transform that into incremental backup?
Those files aren't exactly the same (not same timestamps sometimes, sometimes new data appended here and ...
I need to merge two files based on the 1st and 2nd columns. I need to add the difference between 3rd and 4th columns and add TOTAL rows per type of 2nd column. Here are the two input files:
I want to merge two files like How to merge two files based on the matching of two columns? but one file may not have all results. So for example
I have on my Linux NAS miscellaneous folders with identical names, except for case,like this:
I am trying to merge two columns into one column.
My dataset look like this:
I've been thinking about different ways files could be hidden, and while encryption is excellent at hiding the contents of files, they're not really good at hiding the fact that files exist. In the ...
I made a silly mistake by using the wrong output filename when resuming a ddrescue. This is what happened:
ddrescue -b 2048 -d -v /dev/sr1 IDTa.img IDTa.ddrescue.log
Then the computer crashed and I ...
Suppose I have 2 directories a/ and b/. Let's say they contain the following files:
such that a/foo/1 and b/foo/1 are identical but a/bar/2 and ...
I would like to merge two files, which share some common data. File 1 includes more than file 2. I want to merge the files based on their shared column (3) following the order of file 1 and I want to ...
I would like to merge two files, which share some common data. File 1 includes more than file 2. I want to merge the files based on their shared column following the order of file 1 and I want to add ...
I found a post that answers how to merge sort and remove duplicates. I'm interested in expanding on this and extracting new unique entries from the post-merged file. What would be the command to do so?...
I have a feature branch in git that needs to be up to date with the master branch at all times. Is there any way to automatize this in git? I basically want on every commit in master branch a merge ...
I am trying to merge two csv files using AWK. If the 1st column in file 1 matches the 1st column in file 2 I want to change file1's 3rd column to the value of file2's 2nd column. If there is no match, ...
I have two directories that I need to merge:
B (base), which is very large
U (update), which is moderately sized and contains some modifications and additions to files in B
Both B and U are updated ...
I have a gzipped file which looks like this :
1 rs571093408 rs571093408 13380 C G
I want to merge the first and fourth column with : inbetween and replace the second column with the new content, so ...
In one folder I have two sets of 6 files:
1st-letter-00 - 1st-letter-05
verse-00 - verse-05
How can I concatenate these two sets such that the result is one file that has all ...
I have environment variable, which contains JSON text. I want to add some data to it with jq tool. I want to keep all old fields but add and/or overwrite new ones. The idea is the same as with adding ...