FatherCarbon
Registered Member
- Sep 30, 2008
- 96
- 63
I whipped up this ruby script tonight to sort through all of my PLR and move all of the articles that did not meet the minimum word count to another folder.
There's not much else I can say about it really, just a simple tool for a simple job and I thought some of you might find it useful.
Everything you need to know is in the comments at the beginning of the file.
This should work on any system that can run Ruby. (Linux, Windows, etc)
Please note that I've only tested it on Linux though.
If you don't have the ruby interpreter, get it here:
http://www.ruby-lang.org/en/downloads/
-------------------------------------------------------------------------------------------------
Here's a quick rundown:
ruby words.rb /articles 400
Moves all files in /articles with a wordcount less than 400 to /articles/Under400
-------------------------------------------------------------------------------------------------
Enjoy!
There's not much else I can say about it really, just a simple tool for a simple job and I thought some of you might find it useful.
Everything you need to know is in the comments at the beginning of the file.
This should work on any system that can run Ruby. (Linux, Windows, etc)
Please note that I've only tested it on Linux though.
If you don't have the ruby interpreter, get it here:
http://www.ruby-lang.org/en/downloads/
-------------------------------------------------------------------------------------------------
Here's a quick rundown:
ruby words.rb /articles 400
Moves all files in /articles with a wordcount less than 400 to /articles/Under400
-------------------------------------------------------------------------------------------------
Enjoy!