Skip to content

Instantly share code, notes, and snippets.

@jlecour
Created October 7, 2011 14:36
Show Gist options
  • Save jlecour/1270400 to your computer and use it in GitHub Desktop.
Save jlecour/1270400 to your computer and use it in GitHub Desktop.
awk est un grotte pleine de mystères pour moi
Puisque plein de voix s'élèvent pour m'aider avec awk, voilà mon "problème".
Je cherche à récupérer des infos dans la sortie d'une commande :
$ gem build project.gemspec
WARNING: no homepage specified
Successfully built RubyGem
Name: project
Version: 2.7.5
File: project-2.7.5.gem
Je voudrais obtenir 2 portions (en 2 appels j'imagine) : "2.7.5" et "project-2.7.5.gem"
Merci ;-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment