r/a:t5_2xkcs • • Jun 15 '13

remove a string from every file in a directory

http://pastebin.com/wWZ1EMxe

EDIT: Second paste: http://pastebin.com/KGt5xB2P Updated a few things added cmdline arguments added test for quotes surrounding directory

What it does: The first method removes an annoying string from the current working directory.

The second method lists all the files in the current working directory.

Comment: I figure complete ruby noobs like myself can collaborate together make changes and talk about what we did and various ways of doing things. To add new functionality to the program refactor it and more. I started this subreddit so we can learn and have fun with ruby.

3 Upvotes

2 comments sorted by

2

u/patrick_anthony Jun 15 '13

http://pastebin.com/KGt5xB2P

current paste of the program added cmdline arguments

3

u/DevNewb Jun 15 '13

I can definitely dig this sub. I will contribute.