Questions tagged [merge-file]

18 questions
3
votes
3 answers

how to merge/append one file content to another file using shell script

I have two file fileA and fileB FileA content PersonName Value1 Value2 Value3 FileB content ALBERT check1 check1 check1 ALBERT check2 check2 check2 ALBERT check3 check3 check3 I want to merge content of fileA and fileB and FileA content should be…
upog
  • 4,965
  • 8
  • 42
  • 81
1
vote
1 answer

Pyspark Performance Tuning while merging multiple part files

I am kind of new in spark and i have a requirement where i am required to read from different part folders and then merge them all together to create a single df based on a passed schema. it is something like this /feed=abc -> contains multiple part…
1
vote
0 answers

How to catch command line print output of git bash when calling from python?

Suppose I have 3 text files ours.txt, base.txt and theirs.txt and want to do a three way merge on them. When I call git merge-file -p ours.txt base.txt theirs.txt in Git Bash, it will print the merged text. Whereas, when I run import subprocess dir…
Benjamin4991
  • 123
  • 7
1
vote
2 answers

How to merge all csv files in a specific folder using python and os

How to merge all csv files in a specific folder using os. So the code bellow does the work but it concat all the files in the same directory where the script lives. How do utilized it in different folders? My code: import os import pandas as…
Peter
  • 544
  • 5
  • 20
1
vote
0 answers

merging pdf files in vba

I have a sub-routine to print into pdf an "Análise CC" excel sheet which is saved in a folder with a file name varying according to the print I want to perform. So far so good. Then, I'm developing another sub-routine to compile that former pdf…
Paulo Zoio
  • 39
  • 1
1
vote
2 answers

Write data from one excel sheet to another

I have some .csv files in my folder with names like 1filename.csv, 2filename.csv, 3filename.csv then 1abc.csv, 2abc.csv and so on. I need to merge files with same post name and each file has same no. of columns with same heading.So final file should…
Penny
  • 824
  • 1
  • 14
  • 31
0
votes
0 answers

Merge text files in Sublime4 like append?

Yes, I want just combine files as simple as that: File1.txt line1 line2 line3 File2.txt line4 line5 line6 I want to open the above two files at once and receive File3.txt in a new tab like this line1 line2 line3 line4 line5 line6 It's odd that…
Suncatcher
  • 10,355
  • 10
  • 52
  • 90
0
votes
1 answer

Merging multiple CSV files into 1 in Python but files are appearing unsorted which affects data in date column

I'm trying to merge my 119 csv files into one file through a python code. The only issue I'm facing is that even though I've applied the sort method it isnt working and my files are not ordered , which is causing the date column to be un-ordered.…
0
votes
0 answers

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x87 in position 10: invalid start byte

input_filelist = os.listdir(path) print(input_filelist) merge_data = pd.concat(pd.read_csv(file).assign(sourcefilename = file) for file in input_filelist) merge_data I am trying to concatenate all the csv files of input_filelist into a same csv…
Srijani
  • 1
  • 1
0
votes
2 answers

Faster way to merge multiple files with unequal number of rows by column in bash

I have a multiple files that I want to merge by column using shell script, let's say file a.txt and file b.txt. File a.txt contains sorted unique value and the first column will be used as a reference value. example : # cat a.txt…
0
votes
1 answer

joining big files in Python

I have several HEVEC files that I'd like to merge. With small files (about 1.5 GB) the following code works fine with open(path+"/"+str(sys.argv[2])+"_EL.265", "wb") as outfile: for fname in dirs: with open(path+"/"+fname,…
Dario
  • 73
  • 9
0
votes
0 answers

Concatenated audio files don't play as expected to

I am trying to merge two audio files and play them. I found this article which provide this approach: let uris = ['file.mp3', 'file2.mp3'], proms = uris.map(uri => fetch(uri).then(r => r.blob())); Promise.all(proms).then(blobs => { let blob…
0
votes
2 answers

add top level tag once while merging xml files in xslt

I'm trying to merge multiple xml files in specific folder using xslt and saxon-HE 9.9.1 .NET. I need to create a generic merger so that I will not add a static tag inside the template to use it with different nodes' names, I tried to make a loop to…
Yara
  • 1
  • 1
0
votes
1 answer

NiFi - Control de order merging two dataflows with EnforceOrder and MergeContent processor

I am trying to use the EnforceOrder processor to do a Merge in a determinate order. To do so, this is my flow: In the updateAttribute, I am generating an attribute to set order I want in the merge. On the one of the left, I am setting the value…
jmarco10
  • 451
  • 1
  • 7
  • 21
0
votes
0 answers

Mergefile requests in PDF Toolkit failing

New to Active PDF Toolkit, aattempting to merge up to 100 seperate PDFs into 1. Original PDFs are small, 1-4 pages, but testing has about 1/2 .MergeFile requests failing. Found a lot of pdtk options online, closest to address this issue had sample…
Fondah
  • 15
  • 3
1
2