-
-
Save leejarvis/737d7346760b5bbd1bbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
abort "Usage ..." unless ARGV[2] | |
dir, match, replace = ARGV | |
filenames = Dir.entries(dir).grep(match) | |
filenames.each do |filename| | |
puts filename | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment