Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@EvanHahn
Created January 8, 2015 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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