Questions tagged [merge]
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.
182 questions
2
votes
1
answer
777
views
git, merge changes from another (related) repo (says already up to date)
This is clearly one of those "I've missed the basic principle" type issues. Luckily since everything is now "on the web" I can be very specific and not need to say "for ...
4
votes
1
answer
240
views
Merging with JQ
I am looking to merge two different JSON files into one file -
file 1
[
{
"namespace": "lerjr-rb26-sandbox-keycloak",
"name": "keycloak",
"...
1
vote
1
answer
145
views
While sending mail, the body of the mail lines are getting merged in unix
I have to send an email from my development server, the mail body is having some 20 lines. But Few lines are getting merged.
I have tried no of scenarios (used mailx,mail & sendmail also) to avoid ...
1
vote
0
answers
49
views
How to merge the content of multiple subdirectories into another directory where destination contains the same directory name using a mount / union?
In the example below, exdir is a directory containing many subdirectories. The contents of each subdirectory, which are directories themselves, should be merged with /su/destdir, which already contain ...
0
votes
1
answer
91
views
How to merge all folders in one directory without merging their subfolders?
I have folders arranged as such:
Directory
-Subdirectory A 1
--Subdirectory B 1
--Subdirectory B 2
-Subdirectory A 2
--Subdirectory B 3
--Subdirectory B 4
How do I merge all the Subdirectory As into ...
3
votes
2
answers
3k
views
How to merge multiple mp4 files as chapters in a final mp4?
I have folder with files named like 0001.mp4, 0002.mp4, ...
I want to merge all these files to a combined.mp4, and I want it to have an internal chapter marks. It is convenient when playing for ...
0
votes
2
answers
607
views
Merge files with same name in multiple subfolders
I have multiple folders with a lot of files, Each folder has txt files of the same name, I want to merge files with the same name into one txt file.
Example:
folder/
-sub1
-sub2
-sub3
...
4
votes
1
answer
1k
views
Merge JSON arrays on dissimilar keys
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 ...
0
votes
2
answers
255
views
Merge two two-column files based on a common first column prefering values from the second column of a given file
I have two text files 1.txt and 2.txt that contain two tab separated columns. The first column of both files consists of tokenized text. In both files, the first column is the same. The word order ...
0
votes
3
answers
198
views
I want to merge files starts with same name
I have multiple files, more than 100 like below and I need to merge same name files in to 1 file by concatenating them together.
AB_HCE_USERS_20221228_001.txt
AB_HCE_USERS_20221228_002.txt
...
0
votes
3
answers
73
views
How to perform a "grouped merge" of three files, while omitting the first few lines of each?
This is my reproducible example
file01.txt
line to skip
line to skip
line to skip
line to keep file 01
heading 1 in the form: 2017243 01 2017243 01
data 1 file 01
heading 2 in the form: 2017243 02 ...
0
votes
1
answer
332
views
Diffing two directories well
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,...
4
votes
3
answers
849
views
Merging two non-git-based text files with similar semantics to the depiction of git merge conflicts
I would like to merge two non-git-based text files using semantics that are similar to to how git depicts "merge conflicts".
For example, suppose I have two text files with similar but not ...
0
votes
1
answer
373
views
How to merge text files horizontally on a csv file?
I have several text files that consist of different values. I want to merge all of these files together horizontally and to output a csv file.
File.1.txt
1
2
3
4
5
.
.
.
File_2.txt
1
2
6
7
8
.
.
.
...
-2
votes
2
answers
298
views
Merging multiple csv files without data shifting to the left
Im trying to merge several csv files into one big file. All these files have different column lengths and others only have a header (no data). When I use
paste -d "," file1.csv file2.csv ...