Monthly Archives:: September 2012
I had a task where there were thousands of files in a folder. Some of them contained a specific string and needed to be processed.
A quick n dirty method is to use grep (or windows grep in this case www.wingrep.com/) to identify the files and generate a list of filenames in plaintext. Then using a quick batch for…loop to process the files from the command line… nice and simple.
for /F "tokens=*" %A in (results.txt) do [command] %A
Substitute [process] for your command. %A contains the filepath from grep. In my case I wanted to just delete the file so I just replaced [command] with del. Done!
TechNet Reference: technet.microsoft.com/en-us/library/bb49…
The Handpicked jQuery Plugins Repository is a carefully selected roundup of some of the best jQuery Plugins ever released. Here we offer you the ability to browse through the plugins, or download a plugin that you fancy. Whether you’re building a huge Web-Application, or a simple site, we’ve got you covered. We also offer you the ability to hot-link directly to these plugin scripts through our CDN service, so your site loads much faster.