All Questions

Tagged with
0
votes
3answers
2k views

How to concatenate files from different sub-directories?

I have a large folder containing many sub-directories each holding many .txt files. I want to concatenate all of these files into one .txt file. I am able to do it for each of the sub-directories with ...
2
votes
3answers
4k views

scp remote file and append to local file

I have multiple files to be pulled from remote server. For further processing of the files in the local server, I need to merge (concatenate) them into single file, which can't be done in the remote ...
0
votes
2answers
552 views

Multiple files with no header to merge with one header

I have 58 files named as xaa.csv to xcf.csv, none of them have headers. I have a separate file with the header. How can I merge the files with the header and have 59 outputs merged? For example: ...
1
vote
1answer
61 views

Combining files in a directory by header and omitting shared content

so I have found a question on here that is the opposite of what I would like to do here: Concatenate multiple files with same header. I am trying to merge or concatenate 2 files,within a directory ...
2
votes
2answers
869 views

File merging - same name, different extension

How would you merge different input .txt and .tsv files (within a directory) who have the same name but a different extension into an output file? Input: file1.txt, file2.txt, file1.tsv, file2.tsv ...
1
vote
1answer
2k views

Merge multiple HTML files in reverse order?

I have multiple HTML files for this book. I am trying to add them in opposite order. I've tried: cat *.html >> merge.html I've tried to use tac on the list of downloaded files by time to no ...