Skip to content

Instantly share code, notes, and snippets.

@campeterson
Created November 6, 2012 04:35
Show Gist options
  • Save campeterson/4022577 to your computer and use it in GitHub Desktop.
Save campeterson/4022577 to your computer and use it in GitHub Desktop.
codeupper2
#!/usr/bin/env ruby
input = ARGV[0]
a = input.count('A');
c = input.count('C');
g = input.count('G');
u = input.count('U')
p "#{a} #{c} #{g} #{u}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment