Created
May 21, 2019 16:18
-
-
Save temochka/08a85e250712e36bd6d62248e971cfce to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
while (path = gets) | |
filename = File.basename(path) | |
next if filename.start_with?('@') | |
filename.gsub(/\..+$/, '').split(/[_.]/).reject(&:empty?).each { |token| puts token } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment