Skip to content

Instantly share code, notes, and snippets.

@EvanHahn
Created January 8, 2015 21:41
Show Gist options
  • Save EvanHahn/2b48b9c828af2c92fef9 to your computer and use it in GitHub Desktop.
Save EvanHahn/2b48b9c828af2c92fef9 to your computer and use it in GitHub Desktop.
A Ruby script to remove versions from the output of `apm list --installed --bare`.
#!/usr/bin/env ruby
IO.foreach(ARGV.first) do |line|
puts line.split('@').first
end
# Licensed under the Unlicense. <http://unlicense.org/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment