Created
June 13, 2017 04:43
-
-
Save Phathdt/42bed099fef28a99fa528b0c7f14b254 to your computer and use it in GitHub Desktop.
autosub all file in this dir by Ruby
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
arr = Dir.entries('.').select { |elem| elem.include? ".mp4" } | |
arr.each { |elem| | |
puts "\nXu li file #{elem}" | |
system("autosub \"#{elem}\"") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment