ghacks Technology News

Grab Text from all Files in a Directory

The title of this article might be a little confusing at first glance. Why would someone want to scan files in a directory for certain strings and output them in a new file ? Few ideas come to my mind why this could be useful. Imagine that you were surfing a website with lots of images that you liked very much. You could download those images manually or use the software Win Text File Patch to scan all files in your browsers cache for a certain string and output them in a new file.

Afterwards you would import that new list in a download manager and download all images from there. Sounds easier ? It is, indeed. This is of course not only useful for file downloads but also for any other type of information found in files. Password lists come to my mind, proxy lists, any kind of list actually.

Win Text File Patch has a size of only 84K which is amazing if you consider what this application is doing. To work with the software you need to edit a few entries. You specify the source directory, the file types that you want scanned, a destination directory and file and of course the software should scan the files for.

The text part requires some knowledge of how the information are presented in the files. If you were looking for images for instance you would have to know that they begin with the html tag . It begins to get problematic if the website in question did use relative links and not absolute ones because of the missing url.

Win Text File Patch offers a way to replace the information that has been found which is exactly what we would need here. This can be a very useful software for several users.

Read More:

Win Text File Patch

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.

Related Articles:

Split Text Files With Simple Text Splitter
Replace Text In Multiple Files With Replace Text Software
Split Large Text Files
Locate text in files
Move all files from subdirectories into main directory



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Friday October 12, 2007 -
Tags:, , , , ,


Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us