{"id":3654,"date":"2012-11-03T01:11:23","date_gmt":"2012-11-03T05:11:23","guid":{"rendered":"http:\/\/elwinlee.com\/blog\/?p=3654"},"modified":"2014-11-06T16:27:25","modified_gmt":"2014-11-06T21:27:25","slug":"how-combine-text-files-into-one-file","status":"publish","type":"post","link":"https:\/\/www.elwinlee.com\/blog\/how-combine-text-files-into-one-file\/","title":{"rendered":"[How] Combine Text Files Into One File"},"content":{"rendered":"<p>I was trying to import data into Excel the other day, when I noticed that Excel only allows me to import 1 text file at a time. Because I&#8217;m too lazy to import them 1 by 1, I found this command line on how to combine data from multiple text files into a single file \ud83d\ude00 <\/p>\n<p><a href=\"http:\/\/elwinlee.com\/blog\/wp-content\/uploads\/2012\/11\/cmd_copy.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img decoding=\"async\" src=\"http:\/\/elwinlee.com\/blog\/wp-content\/uploads\/2012\/11\/cmd_copy.png\" alt=\"\" title=\"\" width=\"476\" height=\"263\" class=\"aligncenter size-full wp-image-3655\" srcset=\"https:\/\/www.elwinlee.com\/blog\/wp-content\/uploads\/2012\/11\/cmd_copy.png 476w, https:\/\/www.elwinlee.com\/blog\/wp-content\/uploads\/2012\/11\/cmd_copy-300x166.png 300w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/a><\/p>\n<p>Lets say you have four text files a.txt, b.txt, c.txt and d.txt and you want to merge the contents of all the text files into one target.txt. To merge text files open the MS DOS command prompt and change the directory to where all files are stored. Now issue command : copy *.txt target.txt<\/p>\n<p>This will merge all the text files in the directory and create a new file named target.txt<\/p>\n<p><em>Source: <a href=\"http:\/\/www.thetechhub.com\/2010\/04\/combine-text-files-into-one-with-single.html\">http:\/\/www.thetechhub.com\/2010\/04\/combine-text-files-into-one-with-single.html<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to import data into Excel the other day, when I noticed that Excel only allows me to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3655,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1079],"tags":[991,1898,2204,2205,2206,2207,2208,2209,2210,2211,2212],"class_list":["post-3654","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-fix-stuff","tag-files","tag-text","tag-combine","tag-multiple","tag-single","tag-command","tag-line","tag-cmd","tag-msdos","tag-copy","tag-txt"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.elwinlee.com\/blog\/wp-content\/uploads\/2012\/11\/cmd_copy.png","jetpack_shortlink":"https:\/\/wp.me\/p1mtRf-WW","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts\/3654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/comments?post=3654"}],"version-history":[{"count":2,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts\/3654\/revisions"}],"predecessor-version":[{"id":3660,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts\/3654\/revisions\/3660"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/media\/3655"}],"wp:attachment":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/media?parent=3654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/categories?post=3654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/tags?post=3654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}