Guys
I come across a lot of SEO 's who're working with masses of scraped ...
-
[TUTORIAL] Easy merging lots of text files - one line of code....
Guys
I come across a lot of SEO's who're working with masses of scraped URL lists etc. and need an easy way of combining them into one file for a mass import etc. Many people don't know much about DOS/CLI in windows, but this one line does the job...
First... How to get into the command mode etc if you don't already know...
Windows Key + R = 'Run' (or START:Run)
Type 'CMD' & ENTER to get to the command prompt
Type 'CD C:\Users\whoever\My Documents\blah\blah...' & ENTER to change to the directory where the files are stored. (Hint: If you're in windows explorer and you click on the folder icon top left, next to the windows path, it will become the actual full directory path which you can copy and paste. Paste it into the command box by using right-click and paste - CTRL V won't work.)
Now 'DIR' & ENTER will show you the directory of files (so you can check etc.)
Many of you will know all this so far.... So here's the important command to do the work:
for %f in (*.txt) do type "%f" >> new.txt
...this quite simply loops and copies ('types') any text files (with extension '.txt'), one-by-one into another text file called 'new.txt'
You can play with this with other plain-text file extensions obviously and change the end file name if you want!
-
-
-
[TUTORIAL] Easy merging lots of text files - one line of code....
your in the wrong forum. post this in the programming forum. this is for blackhat software tools, not how to do dos batch commands.
-
Similar Threads
-
By ThreadKiller in forum Video Production
Replies: 7
Last Post: 11-12-2012, 03:52 AM
-
By specopkirbs in forum PHP & Perl
Replies: 4
Last Post: 02-25-2012, 03:26 PM
-
By mullet in forum Black Hat SEO Tools
Replies: 2
Last Post: 08-12-2011, 03:59 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks