Created
June 21, 2013 19:01
-
-
Save seejohnrun/5833514 to your computer and use it in GitHub Desktop.
I can never remember the args to find & xargs
And a lot of times, I want something a billion % simpler
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 | |
raise 'usage: globber \'views/**/*.php\' \'echo {}\'' unless ARGV.length == 2 | |
Dir.glob(ARGV[0]).each { |f| system(ARGV[1].gsub('{}', f)) } |
Author
seejohnrun
commented
Jun 21, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment